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
return $DB->table('Category')->select( ['Full_Name'], { ID => $_[0] } )->fetchrow;
}
..then call with;
<%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!
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!