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
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