Hi,
This *may* work:
On detailed.html, have:
Code:
<%load_category_template($ID)%>
<%if different%>
<%include
/home/path/to/admin/template/$Category_Template/detailed.html%>
<%else%>
...normal code on detailed.html
<%endif%>
In the global load_category_template, have this code:
Code:
sub {
my $ID = $_[0];
my $catid = $DB->table('CatLinks')->select( ['CategoryID'], { LinkID => $ID } )->fetchrow;
my $category_template = $DB->table('Category')->select( ['Category_Template'], { ID => $catid } )->fetchrow;
return { Category_Template => $category_template }
}
This is totally untested, so it may not work =)
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!