Hi,
I am using 4.16.0 and I’m trying to use a paint layout to display data records. I want to include template logic that does different things depending on the metadata schema that’s applied to the data record - but there doesn’t seem to be a way to get the id of the metadata schema. Is this possible? Or how else could I do it?
Many thanks,
Graham
Getting id of metadata schema
mrgrahambird
(Birdg)
#1
Bart
(Bart Banda)
#2
You can create a metadata field in each schema with a non-editable field and value and then do a condition on that. Would that work?
mrgrahambird
(Birdg)
#3
Hi Bart,
Just wanted to post an update to say that this does work - we are now adding a non-editable field called "schema" to each Metadata Schema and populating it with a default value. This works well enough (although I'd rather it wasn't visible for authors).
Thanks again,
Graham
Bart
(Bart Banda)
#4
Good to hear it works. If your authors are using Easy Edit to edit the metadata fields, you should be able to add some custom CSS or JS to hide that field on the metadata screen when they edit it, nice and easy work around.