Skip to main content

How do I handle errors in Smarty?

Since CSS for the content structure editor, dashboard widgets, and the custom function editor all use Smarty, the following error may occur in cases of missing tag attributes or incorrect variable names:

Image from Gyazo [line 1] refers to the line where the error occurred, and syntax error: unrecognized tag: indicates the contents of the error.

This is commonly caused by the use of {} in CSS, JavaScript, and other languages.
To resolve this problem, enclose {} between {literal} {/literal} tags.

Example: CSS code for the content structure editor that removes "Other settings", "Related tags", and "Linkage settings on publication" from the content editor screen.



If you have any other questions, please contact us or check out Our Slack Community.