Gossamer Forum
Quote Reply
build_index field
Does anybody know how to retrieve the build_index (set in setup/build options) in a template?

For example, you want to hardcode a category URL on your frontpage but the index page could change, you want to do something like:

<a href="/category/<build_index>">

But build index doesn't seem to be an environment variable...
Quote Reply
Re: [scorpioncapital] build_index field In reply to
Probably have to do it with a global. Something like;

Code:
sub {
return $CFG->{build_index};
}

Just call the global as you would normally with a global.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!