Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

include categorys?

Quote Reply
include categorys?
Is it possible to include the category on another page with php include or something like that?
Quote Reply
Re: [mariuso] include categorys? In reply to
No one at all that knows?
Quote Reply
Re: [mariuso] include categorys? In reply to
Do you mean just a list of main categories? I am not familiar with PHP, but if it works like SSI, sure. Look this over:

http://www.gossamer-threads.com/...i?post=103545#103545


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] include categorys? In reply to
I didn't understand what i should do with this $category = &site_html_print_catsonly (@rootcat) if ($#rootcat >= 0); (it's the last thing on the last post)
Quote Reply
Re: [mariuso] include categorys? In reply to
That replaces a similar line in the code given two posts above that one, so it would be like so (only partial code posted here):

open (HOME, ">$build_root_path/$build_catsonly") or &cgierr ("unable to open home page: $build_root_path/$build_catsonly. Reason: $!");
$category = &site_html_print_catsonly (@rootcat) if ($#rootcat >= 0);
$total = $grand_total;
print HOME &site_html_catsonly;
close HOME;
print "\tClosing page.\n";
}[/reply]

Leonard
aka PerlFlunkie