Site structure
Version 5.x > Site structure > Stop Meta Data Inheritance On All Pages Within a Directory View modes: 
User avatar
Member
Member
mattmikulla-gmail - 5/16/2012 1:55:41 PM
   
Stop Meta Data Inheritance On All Pages Within a Directory
Is there a way to stop meta data inheritance selected by default to all pages within a directory.

This is causing an SEO headache.

User avatar
Kentico Support
Kentico Support
kentico_janh - 5/17/2012 2:12:41 AM
   
RE:Stop Meta Data Inheritance On All Pages Within a Directory
Hello,

There is no UI interface for that, but you can write a simple script, which takes all documents within some directory and set them empty metadata in a foreach loop:

node.SetValue("DocumentPageTitle", "");
node.SetValue("DocumentPageKeyWords", "");
node.SetValue("DocumentPageDescription", "");
nodeUpdate();


Best regards,
Jan Hermann

User avatar
Member
Member
mattmikulla - 5/17/2012 9:16:45 AM
   
RE:Stop Meta Data Inheritance On All Pages Within a Directory
Will page titles automatically use the page's content heading/title if this script is implemented?

Unfortunately this is a horrible solution. I am not a developer.

So the end result is if I have 200 pages within a directory all of them will have duplicate page titles completely unrelated to their content. Not sure if you know this but it's horrible for SEO.

Why on earth is page title and meta inheritance built in to the core of Kentico?

User avatar
Kentico Support
Kentico Support
kentico_janh - 5/17/2012 9:29:14 AM
   
RE:Stop Meta Data Inheritance On All Pages Within a Directory
Hello,

Maybe I misunderstood your request. You shouldn't have duplicated page titles. Could you please describe me in more details, what do you want to achieve or what is wrong on your site (or some screenshots would be great)? Could you please also check your Page title format setting in Site Manager -> Settings -> Content -> <your site>?

Best regards,
Jan Hermann

User avatar
Member
Member
mattmikulla - 5/17/2012 11:11:32 AM
   
RE:Stop Meta Data Inheritance On All Pages Within a Directory
Sorry for the confusion.

In my setting with my specific site selected and Settings > Web Site

Page title format: {%pagetitle_orelse_name%}
Inherit from global setting: unchecked

Then within content I have a directory /news-and-events/ with a custom page title entered.

Within that directory is another directory of news: /news-and-events/news/

For that page I have a custom page title. Example: Up to Date and Breaking Plumbing News

If I drill into the content within that directory /news-and-events/news/ I have tons of news pages.

Each page has Page title, Page description and Page keywords checked to Inherit. Maybe that's how the content was imported. Not sure.

So basically unique page is inheriting the meta information set at the parent /news-and-content/news/

For example we have a news item: /news-and-events/news/super-awesome-drain-snake-available/ with a content headline/title (not properties > metadata > page title) of "Super Awesome Drain Snake Now Available"

Because that content's page metadata is all set to inherit by default the page title is: Up to Date and Breaking Plumbing News.

Is this the way Kentico works by default? Or did the developer do something that affects my situation?

If this is the way Kentico truly works then is it possible to turn page meta inheritance from parent directories off globally? And why in the world would this be a feature?

I would like the page title to just use the page heading/title by default if no custom page title is entered. I can't expect my client to go in and enter a custom page title.







User avatar
Kentico Support
Kentico Support
kentico_jurajo - 5/17/2012 12:55:50 PM
   
RE:Stop Meta Data Inheritance On All Pages Within a Directory
Hi,

If all the parent level pages are set to inherit the metadata I do not see any reason why page B should have the title of parent page A. I am unable to reproduce the issue and I am pretty sure you won't be the only one complaining about this :-)

What I think is that the parent news document is not inheriting the content and the page title there is "hard coded", which means its child documents are inheriting it.

The default behavior is that if all documents are set to inherit (and the value on the root is blank), and the page title setting is set to {%pagetitle_orelse_name%}, the current page's title is used.

Best regards,
Juraj Ondrus