Variable into template

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
nuxf10ir
Forum Members
Forum Members
Posts: 20
Joined: Tue Aug 24, 2010 6:59 am

Variable into template

Post 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?
gocreative
Power Poster
Power Poster
Posts: 265
Joined: Mon Mar 14, 2011 1:16 am

Re: Variable into template

Post 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}
Post Reply

Return to “Layout and Design (CSS & HTML)”