Add support for allowContentType fields in the part descriptor schema. If <allowContentType> is specified, this part should be available only for content types matching the specified regular expressions.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<part xmlns="urn:enonic:xp:model:1.0">
<display-name>My cool part</display-name>
<allowContentType>landing-page</allowContentType> // only for content type `landing-page` and...
<allowContentType>${app}:*</allowContentType // ...for content types in this application
<form>
</form>
</part>
Add support for
allowContentType
fields in the part descriptor schema. If<allowContentType>
is specified, this part should be available only for content types matching the specified regular expressions.