How to get rich text editor content with Models Builder
How do we retrieve content that is based on the rich text property editor with Models Builder?
I have a document type called Home, and inside of it I have a rich text editor with a property alias name of sSOBar.
I have a Home template (which is a child of my Master template). The Home template has the following code:
...
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.Home>
@using ContentModels = Umbraco.Web.PublishedContentModels;
@{
Layout = "Master.cshtml";
}
<p>my content value for SSOBar is : @Model.SSOBar</p>
But when I run this, I get a compile error message stating:
Compiler Error Message: CS1061:
'Umbraco.Web.PublishedContentModels.Home' does not contain a
definition for 'SSOBar' and no extension method 'SSOBar' accepting a
first argument of type 'Umbraco.Web.PublishedContentModels.Home' could
be found (are you missing a using directive or an assembly reference?)
I think I have it all working now, although I don't know if this was just a limitation in being in PureLive mode or not...
From my web.config I switched from PureLive to DLL mode, re-generated, and now Visual Studio picks up the intellisense and allows me to build my project without error. In addition, there are no compile errors and I can see my values on page.
How to get rich text editor content with Models Builder
How do we retrieve content that is based on the rich text property editor with Models Builder?
I have a document type called
Home
, and inside of it I have a rich text editor with a property alias name ofsSOBar
.I have a Home template (which is a child of my Master template). The Home template has the following code:
...
But when I run this, I get a compile error message stating:
What am I missing?
Yet this works...
Thanks for any help on this with Models Builder
I think I have it all working now, although I don't know if this was just a limitation in being in
PureLive
mode or not...From my web.config I switched from
PureLive
toDLL
mode, re-generated, and now Visual Studio picks up the intellisense and allows me to build my project without error. In addition, there are no compile errors and I can see my values on page.Hi Blachhawk
It can be a problem of local IIS or IIS Express, it's not working with PureLive models, Dll mode is working everywhere.
Thanks,
Alex
ahhh - Thanks for that tip!
is working on a reply...