API
Version 7.x > API > How to uncheck inherit in metadata page setting View modes: 
User avatar
Member
Member
dm - 12/9/2013 2:25:08 PM
   
How to uncheck inherit in metadata page setting
I have a page (menu item) with child docs in them. From page I originally had inherit page description and page keywords checked so all child docs are inheriting these. I no longer want this I would like to set page description and keyword on parent Page but do not want existing or new child docs to inherit. I tried unchecking inherit from parent page but existing child docs still inherits from page. I do not want to manually uncheck inherit from all child docs since I have 200+ child docs. Any ideas on how I can uncheck inherit on child docs programmatically? Or alternative solutions?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/19/2013 5:27:14 AM
   
RE:How to uncheck inherit in metadata page setting
Hello,

for this purpose I would recommend you to take a look at the control responsible for the Metadata handling which is located in the following file: \CMSModules\Content\Controls\MetaData.ascx as well as related .CS file which is exactly what are you looking for as a complete functionality of Metadata is done here.
Go through the code and inspect the code of Checkboxes IDs, e.g. "chkTitle".

Best regards,
Martin Danko