November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi John,
To see, which property name in CMS belongs to which property in code. Go to CMS > Admin > ContentType (Tab). Here you can see all your page types, block types, media types and system type.
Select your page type (say Standard Page)
Now, next thing comes into mind is that on Standard Page your property don't have Name="Large content area"
defined. So, in answer, that is done in language file, where you can add language specific text that will be visible for editors in that specific language. (Read more about Localizing the user interface)
You can find this file at /Resources/LanguageFiles/PropertyNames.xml, see the tag with your property name MainContentArea
<maincontentarea>
<caption>Large content area</caption>
</maincontentarea>
If you see the hierarchy of root elements
<contenttypes>
<icontentdata>
<properties>
Now open the EPiServer.Core.IContentData
, we have a property named Property
which returns collection of all properties defind on your type.
For more information, this IContentData
is base for Page Types, Block type and any media types. Other properties like Name
is defined on EPiServer.Core.PageData
and remaing one you can see in LanguageFile.
Now, answer to TeaserText not visibile on UI. You need to render that. For that, go to /Views/StandardPage/Index.cshtml and add the following code line
@Html.PropertyFor(x=>x.CurrentPage.TeaserText)
Let me know if need more information.
Thanks
The About us page has 4 regions editable in the CMS editor:
Looking at the pages properites, it is of type "Standard Page"
Looking in the source: Models/Pages/StandardPage.cs has only 2 properties, and only one matches:
And "Large Content Area" is missing, as is page name and description.
The page inherits from SitePageData, which has meta stuff, Teaser text (which I dont see anywhere in the UI), but also no "large conent area" etc.
Any suggestions?