Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

How do I do this as a Global ?

Quote Reply
How do I do this as a Global ?
Can I do this as a global ? If so, how do I need to tweek it ?

sub isodate ($)
{
sprintf '%4d-%02d-%02d', split /-/, $_[0] ;
}

Quote Reply
Re: [davidnavigator] How do I do this as a Global ? In reply to
Code:
<%global_name($FIELD_NAME)%>

sub {
return sprintf '%4d-%02d-%02d', split /-/, $_[0] ;
}

...should do the trick Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] How do I do this as a Global ? In reply to
Many thanks.