Limit Custom Attribute to a specific Page Type
Permalink
Hello all,
A question regarding Custom Attributes and page types. I wish to limit a specific Custom Attribute to a specific page type - my use case:
All Galleries
-Gallery Category
--Gallery
I'd like to create a specific attribute for the "Gallery Category" page type called "Category Image" that is only available on that page type (as in you can't add it from the Page Properties->Custom Attributes tab on other page types), and is not removable from that location as well. I already have a custom attribute for "Page Image" but I'd like to clean up that language to be specific to a page type, and I don't need or want every page type to have a "Page Image" added to it by the client.
Is it possible to somehow limit the attributes available for a specific page type in it's controller, or by other means. My last resort if it's not possible through the controller or other means is to use css and hide elements manually this way - which worked well for me here:http://www.concrete5.org/community/forums/usage/allow-only-text-edi...
Thanks!
A question regarding Custom Attributes and page types. I wish to limit a specific Custom Attribute to a specific page type - my use case:
All Galleries
-Gallery Category
--Gallery
I'd like to create a specific attribute for the "Gallery Category" page type called "Category Image" that is only available on that page type (as in you can't add it from the Page Properties->Custom Attributes tab on other page types), and is not removable from that location as well. I already have a custom attribute for "Page Image" but I'd like to clean up that language to be specific to a page type, and I don't need or want every page type to have a "Page Image" added to it by the client.
Is it possible to somehow limit the attributes available for a specific page type in it's controller, or by other means. My last resort if it's not possible through the controller or other means is to use css and hide elements manually this way - which worked well for me here:http://www.concrete5.org/community/forums/usage/allow-only-text-edi...
Thanks!
I think this is not possible out-of-the box but I also needed this one time.
The file you need to modify/override is:
Best,
Antti / Mainio