Category listing with UL LI structure
- goslingcools
-
Topic Author
- Offline
Less
More
14 years 8 months ago #34534
by goslingcools
COBIZ webdevelopment | www.cobiz.nl
Category listing with UL LI structure was created by goslingcools
How can I create a simple ul li structure with active item/parent classes for the categories?
See attachment:
See attachment:
COBIZ webdevelopment | www.cobiz.nl
Please Log in or Create an account to join the conversation.
14 years 8 months ago #34578
by nicolas
Replied by nicolas on topic Re: Category listing with UL LI structure
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.
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.
- goslingcools
-
Topic Author
- Offline
14 years 8 months ago #34631
by goslingcools
COBIZ webdevelopment | www.cobiz.nl
Replied by goslingcools on topic Re: Category listing with UL LI structure
With Show sub categories: "All sub categories"
There is no parent active class... am I right?
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.
14 years 8 months ago #34668
by nicolas
Replied by nicolas on topic Re: Category listing with UL LI structure
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
www.hikashop.com/en/support/forum/4-how-...ategories.html#30092
Please Log in or Create an account to join the conversation.
- goslingcools
-
Topic Author
- Offline
14 years 8 months ago #34731
by goslingcools
COBIZ webdevelopment | www.cobiz.nl
Replied by goslingcools on topic Re: Category listing with UL LI structure
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:
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.
14 years 8 months ago #34789
by nicolas
Replied by nicolas on topic Re: Category listing with UL LI structure
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.
14 years 8 months ago #34791
by nicolas
Replied by nicolas on topic Re: Category listing with UL LI structure
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.
$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.
- goslingcools
-
Topic Author
- Offline
14 years 8 months ago #34819
by goslingcools
COBIZ webdevelopment | www.cobiz.nl
Replied by goslingcools on topic Re: Category listing with UL LI structure
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