Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [jupp] use global in a global ??

Quote Reply
Re: [jupp] use global in a global ?? In reply to
No, you can't call a global within a global, *but* you could add the values to the ConfigData.pm file, and the use that in your globals via $CFG, if you know how to edit that file. Or, you could create a function in a separate file to do what you want.

Might work, but not tried:

If you have a subroutine where the global is passed from the the template.

The globals are compiled before the template is parsed (has to be). So, a global can't know about any other globals during this initial compillation.
But, if a global tag such as BIG_NUMBER is compiled into the globals, and you want to use that inside another global, you *might* be able to do

<%other_subroutine BIG_NUMBER%>

inside your template, and in that case, since BIG_NUMBER has already been compiled, it is passed in to the compiled subroutine, and can be used like any other $tag-> value.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread use global in a global ?? jupp 3526 Jun 10, 2004, 12:27 PM
Thread Re: [jupp] use global in a global ??
pugdog 3406 Jun 12, 2004, 8:22 AM
Post Re: [pugdog] use global in a global ??
jupp 3397 Jun 14, 2004, 1:25 AM
Thread Re: [pugdog] use global in a global ??
webmaster33 3276 Jan 17, 2006, 11:31 AM
Thread Re: [webmaster33] use global in a global ??
Andy 3259 Jan 17, 2006, 11:58 PM
Thread Re: [Andy] use global in a global ??
webmaster33 3252 Jan 18, 2006, 3:26 AM
Post Re: [webmaster33] use global in a global ??
webmaster33 3220 Jan 18, 2006, 7:21 AM