Page 1 of 1

Rendering content tags inside global content blocks

Posted: Mon Sep 17, 2018 8:24 am
by noelelias
I'm wondering why "content tags" inside a "global content block" do not render.
And if it possible to add this feature in the future?

Re: Rendering content tags inside global content blocks

Posted: Mon Sep 17, 2018 2:47 pm
by DIGI3
It sounds like you're on a really old version, GCB's have been replaced with generic templates, and wouldn't have any issues like that.

Re: Rendering content tags inside global content blocks

Posted: Thu Sep 20, 2018 3:41 pm
by noelelias
Yes sorry that's what I meant.
But they don't work either.
What I meant is that content tags inside these gcb or general blocks do not show up inside the content manager. If I instead use smarty blocks it works.

Re: Rendering content tags inside global content blocks

Posted: Fri Sep 28, 2018 3:03 pm
by DIGI3
Just define them in the page template first, assigned to a variable, then you can display them in the generic template.

In your page template:

Code: Select all

{$textblock="{content block='foo'}" scope=global}
{include file='cms_template:mytemplate'}
In your generic template:

Code: Select all

{$textblock}