Gossamer Forum
Home : Products : Links 2.0 : Customization :

New Mod: Multi Templates for detailed view

Quote Reply
New Mod: Multi Templates for detailed view
Heya.....

Im really new here, but here we goes...

I dont know if someone else already did this before, but i was using this mod ( http://cgi-resource.co.uk/pages/multcat.shtml ) Multi Category Templates, and decided to make a mod that do exactely the same, but with the detailed.html so here it is:

In links.def add this (change the 14 for the last on in your list):
Code:
'Link Template' => [14, 'alpha', 40, 75, 0, '', '']

Then go to site_html_templates.pl at sub site_html_detailed
Add this
Code:
my %rec = @_;
my $ext = ".html";
if ($rec{'Link Template'}) {
$dettemplate = "$rec{'Link Template'}$ext";
}
else {
$dettemplate = 'detailed.html';
}

Then change
Code:
return &load_template (´detailed.html´, {
to:
Code:
return &load_template ($dettemplate, {


Thats all... hope help someone...
And sorry if its already made by someone!

Credits to the creator of the Multi Category Mod ;)

Regards!