Adding a h1 heading property

Vote:
 

Hi guys

 

I want to add a heading property to to the [Demo] StartPage template which will become the h1 of the page. I have added a new property called heading to the template but what do I need to change to the DefaultDemo.aspx page? Is it necessary to add a content placeholder to the master page?

#50747
May 11, 2011 16:29
Vote:
 

Hi

Add this to a suitable place in the DefaultDemo.aspx

    <h1><EPiServer:Property runat="server" PropertyName="heading" /></h1>
#50757
May 11, 2011 21:43
Vote:
 

Thanks Henrik, One more question. When I added this property It took a long time to actually appear on the site and when I comment it out it takes a long time to disappear aswell why might this be?

#50771
May 12, 2011 11:26
Vote:
 

Hi

I guess this is a browser caching issue. Try reloading your page with CTRL + F5 after you have modified your markup code or css.

#50772
May 12, 2011 11:29
Vote:
 

I'd say it's probably the web server output cache and/or the JIT compiler which doesn't immediately recompile the aspx.

#50773
May 12, 2011 11:45
Vote:
 

Thanks It seems to reload if I visit the start page first.

#50776
May 12, 2011 12:07
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions 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.