Is it possible to include the category on another page with php include or something like that?
Aug 5, 2004, 1:35 PM
Veteran (1352 posts)
Aug 5, 2004, 1:35 PM
Post #3 of 5
Views: 6748
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
http://www.gossamer-threads.com/...i?post=103545#103545
Leonard
aka PerlFlunkie
Aug 6, 2004, 12:40 AM
Veteran (1352 posts)
Aug 6, 2004, 12:40 AM
Post #5 of 5
Views: 6742
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
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