global tags

This is an archive of old posting to the User Forum

global tags

Postby Ken Lanxner » Fri Mar 05, 2004 4:10 pm

If [-- VAR.somename PAGE.field --] is listed as a global tag, why do I
get an error when using it in a product template? "Template Error:
Page tag not allowed"

I thought global tags were allowed in all templates.

Thanks.

Ken
Ken Lanxner
 

Re: global tags

Postby Jim » Fri Mar 05, 2004 5:29 pm

Ken Lanxner wrote:
If [-- VAR.somename PAGE.field --] is listed as a global tag, why do I
get an error when using it in a product template? "Template Error:
Page tag not allowed"

I thought global tags were allowed in all templates.

Thanks.

Ken

You need to define the VAR in the Page template since that is the only
place the PAGE.field is valid. You can then use the VAR in the product
template.
So in the page template you would have

[-- VAR.somename PAGE.field --]

and in the product template you would use that VAR like so

[-- VAR.somename --]
or if you are doing a conditional statement
[-- IF VAR.somename somevalue --]

Jim
Jim
 

Re: global tags

Postby Ken Lanxner » Fri Mar 05, 2004 6:43 pm

You need to define the VAR in the Page template since that is the only
place the PAGE.field is valid. You can then use the VAR in the product
template.
So in the page template you would have

[-- VAR.somename PAGE.field --]

and in the product template you would use that VAR like so

[-- VAR.somename --]
or if you are doing a conditional statement
[-- IF VAR.somename somevalue --]

Thanks, Jim. I got it working. I got confused by the cheatsheet listing
that tag as a global. I think I understand it better now.

Ken
Ken Lanxner
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 30 guests