While setting up a test environment for reproducing the issue, I accidentaly found a workaround:
My setup has a header template "html-head" starting with:
Code: Select all
{strip}{process_pagedata}
{$content = "{content}" scope=global} ...
to make the {$content} variable everywhere.
The main template includes this header like this:
Code: Select all
{include|strip file='cms_template:html-head'}{strip}
/*...here comes a lot of html ...*/
{$content|replace:'<img ':'<img loading="lazy" '}
using that approach, the {$content} will be displayed in the frontend, but as already stated the,
content textblock is then completely missing in the Content Manager starting from CMSMS v2.2.0. (It was working flawlessly with v2.2.19)
Solution/Workaround:
When I shift the assignment of the {$content} Smarty variable
from the header template "html-head" directly
to the main template like this:
Code: Select all
{include|strip file='cms_template:html-head'}{strip}
/*...here comes a lot of html ...*/
{$content2 = "{content}" scope=global}
{$content2}
(I named the variable "$content2" on purpose, as I kept the original "$content" in the header template "html-head")
This way there is no issue at all and the content textblock gets displayed as usually in the Content Manager.
I guess there might be an issue with the "global" scope?
Also the permissive Smarty setting is in place:
Code: Select all
$config['permissive_smarty'] = true;