Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Remove metadata inherit from parent by default View modes: 
User avatar
Member
Member
Willy - 6/6/2011 9:10:46 PM
   
Remove metadata inherit from parent by default
Is there a way to default a settings where a newly created document does not inherit the meta data of the parent document?

I just realize after adding all the pages that it all inherited the meta data, and deleting them is tedious. Google now picks up all new child document with the same metadata...

Willy

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 6/6/2011 10:48:39 PM
   
RE:Remove metadata inherit from parent by default
Hi,


Unfortunately, it is a default behavior, which cannot be changed easily. The value, which is used for inheritance is set by default to null. To change this behavior, you will need to set it to empty string. This can be done in a custom tree node handler:
Custom tree node handler

In this handler you will need to add following code:

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


Using above code in the custom tree node handler you can change default behavior and new node will not inherit from its parent.

Best regards,
Ivana Tomanickova