Inheritance of content type tags


This page should only be used if script asks you to pass the code.20240920 manual migration.CMS.contentType-tag-inheritance

Until now, tag inheritance was disabled by default when extending a content type. Now, to be consistent with the rest of the definition, it too is inherited by default.

It is therefore necessary to check which definitions inherit a content type. These may fall into one of the following three cases:

La définition n'inclut pas de balise <tags>

Your definition then inherited no tags from its parent type. You need to check whether or not you need to prevent inheritance, depending on the tags of the parent type.

If it is necessary to prevent inheritance, add the following tag :

<tags inherited="false"/>

La définition inclut une balise <tags> ou <tags inherited="false">

You need to check whether you need to prevent inheritance or not, depending on the tags of the parent type.

If it's really necessary to prevent inheritance, make sure that the inherited="false" is present.

La définition inclut une balise <tags inherited="true">

If the tag doesn't contain any additional tags, you can delete it, as this is now the default behavior.

If the tag contains tags that are not present in the parent type, delete only the inherited="true" which is no longer necessary.

For more information, see the tags section of the content type declaration documentation page.

Back to top