Rendering content tags inside global content blocks

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
noelelias
New Member
New Member
Posts: 2
Joined: Mon Sep 17, 2018 8:17 am

Rendering content tags inside global content blocks

Post 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?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Rendering content tags inside global content blocks

Post 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.
Not getting the answer you need? CMSMS support options
noelelias
New Member
New Member
Posts: 2
Joined: Mon Sep 17, 2018 8:17 am

Re: Rendering content tags inside global content blocks

Post 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.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Rendering content tags inside global content blocks

Post 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}
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”