html (quotes) in orchard command line?

Topics: Customizing Orchard
Dec 28, 2011 at 1:06 AM
Edited Dec 28, 2011 at 1:09 AM

I ran into an interesting delima, I'd like to add html into an html widget.  something this works:

widget create HtmlWidget /Title:"" /Zone:"Navigation" /Position:"10" /Layer:"Default" /Identity:"MainNavigation" /Text:"<p>Paste Nav here.</p>"

So does this (notice the single quote):

orchard> widget create HtmlWidget /Title:"" /Zone:"Navigation" /Position:"10" /Layer:"Default" /Identity:"MainNavigation" /Text:"<img src='http://corecomps.com/logo.gif'>"

But how can I have quotes inside the command line for orchard? I tried /q I also tried the command below as well:

orchard> widget create HtmlWidget /Title:"" /Zone:"Navigation" /Position:"10" /Layer:"Default" /Identity:"MainNavigation" /Text:"<img src=&ldquo;http://corecomps.com/logo.gif&ldquo;>"

No such luck.  Any ideas?

oh yeah, FYI it appears to have a limit in characters as well.

 Perhaps I'll add an ability to point to a txt file with the html in it or create some commands for the import/export module.

Coordinator
Dec 28, 2011 at 7:41 AM

Did you try doubling the inner quotes?

Sep 3, 2014 at 7:19 PM
Doubling the inner quotes did not work for me. Is there another solution?