[SOLVED] How to refer to Global Block between brackets

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
piar
Forum Members
Forum Members
Posts: 10
Joined: Fri Feb 27, 2009 5:30 pm

[SOLVED] How to refer to Global Block between brackets

Post by piar »

Hi!

For sure this has been already explained somewere here but I haven't found it.

I just want to use content of global block as parameter value of one of standard tags.

This of course doesn't work:

Code: Select all

{cms_selflink page="alias" text="{global_content name='translated_link_text'}"}
How should I do that?

Ragards,
Last edited by piar on Wed Mar 04, 2009 3:48 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: How to refer to Global Block between brackets

Post by Nullig »

You could try:

{capture assign='myvar'}{global_content name='translated_link_text'}{/capture}

{cms_selflink page="alias" text=$myvar}

Nullig
piar
Forum Members
Forum Members
Posts: 10
Joined: Fri Feb 27, 2009 5:30 pm

Re: How to refer to Global Block between brackets

Post by piar »

That helped me - thank you!
Post Reply

Return to “CMSMS Core”