November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
How do you render the WYSIWYG property on your page?
Like this:
@Model.MainBody
Like this:
@Html.PropertyFor(m => m.MainBody)
Or like this:
@Html.DisplayFor(m => m.MainBody)
The first example will not parse and render blocks. The other two will, by rendering the XhtmlString with the HTML Helper extension RenderXhtmlString.
Yeah, and you can also define a property on your view model with the same type and the same name as on your content model if you don't want to pass in the current page. Actually it's not required to have the same name on the view model property but it makes things easier. Otherwise you would have to add edit hints to connect the content model property with the view model property.
Oh, btw, if you want to render XhtmlStrings in a context where you don't have a HTML helper available you can look at my reply here:
http://world.episerver.com/Modules/Forum/Pages/Thread.aspx?id=151714
Nope...all foreign to me. I have access only to Episerver itself. No compiles, no solutions, no nothing. Thanks anyway for your collective helps!
Oh ok, this is the developers forums :). Maybe you can forward this information to the agency that developed the solution you are editing?
Just to make one thing clear:
Based on the markup you are referring to it looks like HTML generated directly in the Wysiwyg editor. Episerver doesn't support real time block preview at the time you are editing a Wysiwyg property. They are parsed and loaded when you remove focus from (blur) the editor.
In other CMS' i've worked in, there is an option to either insert a Block into a text field/RTF WYSIWYG or by copying a "shortcode" into the fields you want it to generate in.
For example: ...would display anything in this CMS from a page to a block of code with or without a view.
In Episerver, it feels like this: ...should amount to a view or model of code within item? But all i get is a description text, seen between the
Does episerver have any sort of shortcode luxury? Something i missed in documentation review?