This project is read-only.

html (quotes) in orchard command line?

Topics: Customizing Orchard
Dec 28, 2011 at 2:06 AM
Edited Dec 28, 2011 at 2: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=''>"

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;;>"

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.

Dec 28, 2011 at 8:41 AM

Did you try doubling the inner quotes?

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