London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Adding a h1 heading property

Vote:
0

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:
0

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:
0

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:
0

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:
0

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:
0

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.