ASPX templates
Version 4.x > ASPX templates > Setting meta PageTitle to home page View modes: 
User avatar
Member
Member
srizzetto-microgate - 8/26/2009 3:17:02 AM
   
Setting meta PageTitle to home page
How can I set a Title to the Home page of my site LEAVING BLANK the field Page Title in Metadata Tab ?
I want to leave blank because all the beneath pages inherit from home and I want the document name as title for them.

Thx

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 9/1/2009 7:19:17 AM
   
RE:Setting meta PageTitle to home page
Hi Sandro,

If you use Portal Engine you could write custom code into ~\CMSPages\PortalTemplate.aspx.cs file that will check current page (CMS.CMSHelper.CMSContext.CurrentPageInfo.NodeAliasPath) and if it's home page it will parse text in ltlTags.Text property and set appropriate title into it.

Best Regards,

Martin Dobsicek