Page 1 of 1

Variable into template

Posted: Fri Oct 12, 2012 3:26 pm
by nuxf10ir
Hi
I have small question about variables.
So I want to set into full_news_text template
{assign var='albumLink' value=$entry->extra}
and get $albumLink into page template out of content block.
How can I do this?

Re: Variable into template

Posted: Wed Nov 07, 2012 12:11 am
by gocreative
If I understand correctly, you've already done half of the job.

In your news template, use your existing code:

Code: Select all

{assign var='albumLink' value=$entry->extra}
Then, in your page template, simply call the variable:

Code: Select all

{$albumLink}