Page 1 of 1

[SOLVED] How to refer to Global Block between brackets

Posted: Wed Mar 04, 2009 3:14 pm
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,

Re: How to refer to Global Block between brackets

Posted: Wed Mar 04, 2009 3:30 pm
by Nullig
You could try:

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

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

Nullig

Re: How to refer to Global Block between brackets

Posted: Wed Mar 04, 2009 3:47 pm
by piar
That helped me - thank you!