Hello everyone!
I’m encountering an issue with generating JSON files from pages that inherit metadata when using an FS_CATALOG in our metadata template. I am developing a metadata template in FirstSpirit CMS, which includes an FS_CATALOG with a set of permissions (md_permissions) and roles stored in a section template (md_rolles). I need the metadata (including roles defined as a checkbox) to be inherited from the root node, and JSON files are generated for each page.
Metadata Template Structure:
<FS_CATALOG name="md_permissions">
<LANGINFOS>
<LANGINFO lang="*" label="Berechtigungen"/>
</LANGINFOS>
<TEMPLATES type="section">
<TEMPLATE uid="md_rolles"/>
</TEMPLATES>
</FS_CATALOG>
Section Template (md_rolles):
<CMS_INPUT_CHECKBOX name="st_roles" useLanguages="no">
<ENTRIES>
<ENTRY value="role1">
<LANGINFOS>
<LANGINFO lang="*" label="Role 1"/>
</LANGINFOS>
</ENTRY>
<ENTRY value="role2">
<LANGINFOS>
<LANGINFO lang="*" label="Role 2"/>
</LANGINFOS> </ENTRY>
<ENTRY value="role3">
<LANGINFOS>
<LANGINFO lang="*" label="Role 3"/>
</LANGINFOS>
</ENTRY>
</ENTRIES>
<LANGINFOS>
<LANGINFO lang="*" label="Rolle"/>
</LANGINFOS>
</CMS_INPUT_CHECKBOX>
I set the inheritance of metadata as true and when I attempt to generate JSON files for pages, I receive the following error:
22.10.2024 10:45:14.410 ERROR ($CMS_VALUE(json(#this))$ at 6, 1): st_roles inside of: PageTemplate 'Home' (id=22) (channel=JSON) inside of: $CMS_VALUE(json(#this))$ - at 6, 1
The error occurs only when the CMS_INPUT_CHECKBOX is inside the FS_CATALOG. If I move the checkbox outside the catalog or use it separately, the generation works fine without errors.
Is there any solution?
Best regards,
Evgenii