Skip to main content

Category listing with UL LI structure

More
14 years 8 months ago #34534 by goslingcools
How can I create a simple ul li structure with active item/parent classes for the categories?

See attachment:

COBIZ webdevelopment | www.cobiz.nl

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34578 by nicolas
Hi,

You can do that by creating a new hikashop module (via the joomla module manager) and then setting the hikashop options so that the layout used is the list one and turn on the "Show sub categories" option there.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34631 by goslingcools
With Show sub categories: "All sub categories"

There is no parent active class... am I right?

COBIZ webdevelopment | www.cobiz.nl

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34668 by nicolas
There should be. That's something which was added in HikaShop in the latest release:
www.hikashop.com/en/support/forum/4-how-...ategories.html#30092

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34731 by goslingcools
I just (5 min ago) downloaded the latest version of Hikashop and installed it over the current version.

Still I have this category listing, without a parent class active.

See attachment:

COBIZ webdevelopment | www.cobiz.nl

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34789 by nicolas
Ah yes, this was only added for the two other choices of the "Show sub categories" option.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34791 by nicolas
You can add it by editing the file "listing_list" of the view "category" via the menu Display->Views and changing the code:
$link = hikashop_completeLink('category&task=listing&cid='.$child->category_id.'&name='.$child->alias.$this->menu_id);
?>
<li class="hikashop_category_list_item">

to:
$class = '';
if($cid==$child->category_id){
$class=' current active';
}
$link = hikashop_completeLink('category&task=listing&cid='.$child->category_id.'&name='.$child->alias.$this->menu_id);
?>
<li class="hikashop_category_list_item<?php echo $class; ?>">


We'll add that to next release.

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #34819 by goslingcools
Ok, I will try that. Thanks!

COBIZ webdevelopment | www.cobiz.nl

Please Log in or Create an account to join the conversation.

Time to create page: 0.168 seconds
Powered by Kunena Forum