Category listing with UL LI structure

  • Posts: 38
  • Thank you received: 0
12 years 10 months ago #34534

How can I create a simple ul li structure with active item/parent classes for the categories?

See attachment:


COBIZ webdevelopment | www.cobiz.nl
Attachments:

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34578

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.

  • Posts: 38
  • Thank you received: 0
12 years 10 months ago #34631

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.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34668

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.

  • Posts: 38
  • Thank you received: 0
12 years 10 months ago #34731

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
Attachments:

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34789

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.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34791

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.

  • Posts: 38
  • Thank you received: 0
12 years 10 months ago #34819

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.067 seconds
Powered by Kunena Forum