Page 1 of 1

global tags

PostPosted: Fri Mar 05, 2004 4:10 pm
by Ken Lanxner
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

Re: global tags

PostPosted: Fri Mar 05, 2004 5:29 pm
by Jim
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

Re: global tags

PostPosted: Fri Mar 05, 2004 6:43 pm
by Ken Lanxner
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