Adding ContentArea to Relate+ Demo Site's Start Page

Dan
Dan
Vote:
 

I’m playing around the Relate+ demo site and would like to know how to add ContentArea to the start page of the demo site (my intention was to add blocks to this ContentArea)

#72761
Jun 27, 2013 22:12
Vote:
 

It's actually pretty easy. As Relate+ sample site does not create page types from code, all you need to do is to add property directly to the page via UI:

 

http://sdrv.ms/1aSKiw8

 

Then you need to add property to template markup anywhere you want to content area to show up:

<EPiServer:Property ID="epiSampleArea" PropertyName="SampleArea" runat="server" DisplayMissingMessage="false" />

    

Then you can see content area in edit mode:

http://sdrv.ms/18jL7P3

 

 

Actually what I would do is to use excellent plugin made by Alf (http://talk.alfnilsson.se/2013/03/08/creating-page-type-classes-from-page-types-in-episerver-cms-7/) to reverse engineering page types back to code and add ordinary property to the page type class.

#72763
Jun 28, 2013 7:09
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.