Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [hegu] Form display based on the user name

Quote Reply
Re: [hegu] Form display based on the user name In reply to
You're not being very specific. If its for a place where you have access to the $ID tag, you could load the category name with:

load_cat_name
Code:
sub {
return $DB->table('Category')->select( ['Full_Name'], { ID => $_[0] } )->fetchrow;
}

..then call with;

Code:
<%set Full_Name =load_cat_name($ID)%>
<%if Full_Name istart = "Test Category/Something"%>
show one form
<%elsif Full_Name istart = "Another Test Category"%>
another form
<%else%>
something else
<%endif%>

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!
Subject Author Views Date
Thread Form display based on the user name hegu 12529 Apr 22, 2009, 1:34 PM
Thread Re: [hegu] Form display based on the user name
brewt 12285 Apr 22, 2009, 2:59 PM
Thread Re: [brewt] Form display based on the user name
hegu 12285 Apr 22, 2009, 3:27 PM
Thread Re: [hegu] Form display based on the user name
brewt 12293 Apr 22, 2009, 4:13 PM
Thread Re: [brewt] Form display based on the user name
hegu 12286 Apr 22, 2009, 9:10 PM
Thread Re: [hegu] Form display based on the user name
hegu 12259 Apr 23, 2009, 11:35 AM
Thread Re: [hegu] Form display based on the user name
hegu 12235 Apr 25, 2009, 9:23 PM
Thread Re: [hegu] Form display based on the user name
Andy 12301 Apr 26, 2009, 1:56 AM
Post Re: [Andy] Form display based on the user name
hegu 12213 Apr 26, 2009, 7:17 AM
Thread Re: [Andy] Form display based on the user name
hegu 12154 May 17, 2009, 7:00 AM
Thread Re: [hegu] Form display based on the user name
Andy 12134 May 17, 2009, 9:01 AM
Thread Re: [Andy] Form display based on the user name
hegu 12104 May 19, 2009, 10:14 AM
Thread Re: [hegu] Form display based on the user name
Andy 12169 May 19, 2009, 11:02 AM
Thread Re: [Andy] Form display based on the user name
hegu 12125 May 19, 2009, 12:02 PM
Thread Re: [hegu] Form display based on the user name
VishalT 12112 May 19, 2009, 3:26 PM
Thread Re: [SWDevil.Com] Form display based on the user name
hegu 12090 May 19, 2009, 5:01 PM
Thread Re: [hegu] Form display based on the user name
VishalT 12120 May 19, 2009, 5:26 PM
Thread Re: [SWDevil.Com] Form display based on the user name
hegu 12065 May 19, 2009, 5:31 PM
Thread Re: [hegu] Form display based on the user name
Andy 12104 May 20, 2009, 12:05 AM
Post Re: [Andy] Form display based on the user name
hegu 12045 May 20, 2009, 7:11 AM