As an application developer, For a specific x-data, I want to be able to specify a filter for content types that shall be able to use it. I want to be able to either explicitly specify content types to allow or use a regex to allow content types based on a specific pattern (see https://github.com/enonic/xp/issues/6154).
Use the mixin only on the landing-page content type :
I'm able to specify one or more patterns filtering allowed content types via allowContentType field in the new <x-data> schema
This does not affect the old schema setup referencing <mixin>(from site or content type directly). However, if an x-data is referenced, the filter must be applied
Implement support of {$app} macro inside the pattern to be able to refer to content types from the same app
If I add an x-data to site.xml or a content type scheme and the content type doesn't match this mixin's allowContentType pattern, then the mixin should not be rendered in the Wizard.
Filtering of content types should be covered by sufficient tests
As an application developer, For a specific x-data, I want to be able to specify a filter for content types that shall be able to use it. I want to be able to either explicitly specify content types to allow or use a regex to allow content types based on a specific pattern (see https://github.com/enonic/xp/issues/6154).
Use the mixin only on the landing-page content type :
Use the x-data on the landing-page content type and any content type from a specific app containing media substring:
Use the mixin on all content types but only from the current app:
Allow all content types except for the ones containing htmlarea substring:
Conditions of satisfaction:
allowContentType
field in the new<x-data>
schema<mixin>
(from site or content type directly). However, if an x-data is referenced, the filter must be applied{$app}
macro inside the pattern to be able to refer to content types from the same appx-data
tosite.xml
or a content type scheme and the content type doesn't match this mixin'sallowContentType
pattern, then the mixin should not be rendered in the Wizard.