Gossamer Forum
Home : Products : Gossamer Links : Discussions :

unable to set globals

Quote Reply
unable to set globals
I tried to set a global variable, I added a test variable in the admin section with the code: test; and description: this is a test, then I put the tag <%test%> in my links.html template. After rebuild, I got an error "Unknown Tag: 'test'" at the tag spot. Was I doing the right way? if yes, why the tag can not be recoginized?

Thanks in advance.

Long

Quote Reply
Re: unable to set globals In reply to
To add a new variable to the templates, you define the variable:

"test" and what you want it to be in the second box "This is a test"

Or, you can put what is in the second box as a subroutine (look at the date example).

When you save it back, this variable will now be available in the template set you saved it into ie: default (usually)

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: unable to set globals In reply to
Hi, Pugdog

I made a mistake by putting the global to admin section instead of default section. that's why I got unknown tag.

Thanks you very much!
Long