4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: zaisk on March 13, 2006, 01:36:49 PM
-
I very need help :/
Is it possible to show some info in category and not to show in subcategory.
When I am trying to edit template file category.html I get the same info in category and subcategory. I need to hide info in subcategories.
Please help
-
It is possible ... :wink: ... ! You can use different category templates ...
try this : http://www.4homepages.de/forum/index.php?topic=1847.msg7781#msg7781
mawenzi
-
Or replace in categories.php
$site_template->print_template($site_template->parse_template($main_template));
with:$site_template->print_template($site_template->parse_template($main_template.($cat_cache[$cat_id]['cat_parent_id'] ? "_sub" : "")));
and then create new template for subcategories, name it as categories_sub.html
-
Or replace in categories.php$site_template->print_template($site_template->parse_template($main_template));
with:$site_template->print_template($site_template->parse_template($main_template($cat_cache[$cat_id]['cat_parent_id'] ? "_sub" : "")));
and then create new template for subcategories, name it as categories_sub.html
Thank you, but after I replave the code I get the error when I am entering category or subcategory, the error is: Fatal error: Call to undefined function: categories() in /home/*****/public_html/4images/categories.php on line 175
-
oh...left out a dot after $main_template