Hi,
I'd like to use category numbers in category template.
Could someone please help me out?
I am going to use cat_id number to show targeted zone banneres, like zone_<%cat_id%>.cgi.
In Links 2, I did as follows;
In nph-build.cgi, sub build_category_pages.
Added
local ($cat_id);
After
local ($description, $related, $meta_name, $meta_keywords, $header, $footer, $next, $prev);
Next added
$cat_id = @{$category{$cat}}[$db_key];
After
$title_linked = &build_linked_title ($cat);
$title = &build_unlinked_title ($cat);
$total = ($#{$links{$cat}} + 1) / ($#db_cols + 1);
$category_name = $cat;
$category_name_escaped = &urlencode ($cat);
$category_clean = &build_clean ($cat);
And in site_html_templates_pl, sub site_html_category
Added
cat_id => $cat_id,
Best regards,
Moto
I'd like to use category numbers in category template.
Could someone please help me out?
I am going to use cat_id number to show targeted zone banneres, like zone_<%cat_id%>.cgi.
In Links 2, I did as follows;
In nph-build.cgi, sub build_category_pages.
Added
local ($cat_id);
After
local ($description, $related, $meta_name, $meta_keywords, $header, $footer, $next, $prev);
Next added
$cat_id = @{$category{$cat}}[$db_key];
After
$title_linked = &build_linked_title ($cat);
$title = &build_unlinked_title ($cat);
$total = ($#{$links{$cat}} + 1) / ($#db_cols + 1);
$category_name = $cat;
$category_name_escaped = &urlencode ($cat);
$category_clean = &build_clean ($cat);
And in site_html_templates_pl, sub site_html_category
Added
cat_id => $cat_id,
Best regards,
Moto