Site structure
Version 3.x > Site structure > metadata not showing View modes: 
User avatar
Guest
uniteform - 8/20/2008 4:59:50 AM
   
metadata not showing
The page description and keywords metadata are not showing after entering in the CMS Desk. The page titles are picked up though and the metadata appears on all other sites within the same database, jut not this particluar one. Any ideas?

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 8/20/2008 7:49:29 AM
   
RE:metadata not showing
Hi,

I think that we have found source of your problem.
As I have noticed you are using ASPX templates. And the problem is related to your MasterPage template.

To generate metadata properly you should have literal control in your MasterPage <head> tag, for example:
<head runat="server">
<asp:literal runat="server" id="ltlTags" enableviewstate="false" />
</head>

And then simply in code-behind(your MasterPage .cs file) you should call method OnPreRender in which you will set its value to your page Header tags.
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);

this.ltlTags.Text = this.HeaderTags;

}

Please check if you have code like this in your MasterPage files , if not please insert it to your code and it should work correctly then.

Best Regards,

Zbysek Nemec