[Skip to main content](#vessel-content)

#   Category listing with UL LI structure

##

- **[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")**
- [![goslingcools's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2994.jpg)](/forum/user/2994-goslingcools "View goslingcools's Profile") Topic Author
- [ Offline](/forum/user/2994-goslingcools)

Less More

- Posts: 38
- Thank you received: 0
-
- [](http://www.cobiz.nl)
-

14 years 9 months ago [\#34534](#34534) by [goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")  *[Category listing with UL LI structure](/forum/4-how-to/34534-category-listing-with-ul-li-structure#34534 "How can I create a simple ul li structure with active item/parent classes for the categories?  See attachment:")* was created by *[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")*

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

See attachment:  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/category_menu.PNG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/category_menu.PNG "&#91;img")

---

COBIZ webdevelopment \| [ ](http://www.cobiz.nl)[ www.cobiz.nl](http://www.cobiz.nl)

- [ ![category&#95;menu.PNG](/forum/attachment/2347) ](/forum/attachment/2347 "category&#95;menu.PNG") [ ](/forum/attachment/2347?download=1 "category&#95;menu.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NTM0LWNhdGVnb3J5LWxpc3Rpbmctd2l0aC11bC1saS1zdHJ1Y3R1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

14 years 9 months ago [\#34578](#34578) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Category listing with UL LI structure](/forum/4-how-to/34534-category-listing-with-ul-li-structure#34578 "How can I create a simple ul li structure with active item/parent classes for the categories?  See attachment:")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NTM0LWNhdGVnb3J5LWxpc3Rpbmctd2l0aC11bC1saS1zdHJ1Y3R1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")**
- [![goslingcools's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2994.jpg)](/forum/user/2994-goslingcools "View goslingcools's Profile") Topic Author
- [ Offline](/forum/user/2994-goslingcools)

Less More

- Posts: 38
- Thank you received: 0
-
- [](http://www.cobiz.nl)
-

14 years 9 months ago [\#34631](#34631) by [goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")  Replied by *[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")* on topic *[Re: Category listing with UL LI structure](/forum/4-how-to/34534-category-listing-with-ul-li-structure#34631 "How can I create a simple ul li structure with active item/parent classes for the categories?  See attachment:")*

With **Show sub categories**: "All sub categories"

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

---

COBIZ webdevelopment \| [ ](http://www.cobiz.nl)[ www.cobiz.nl](http://www.cobiz.nl)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NTM0LWNhdGVnb3J5LWxpc3Rpbmctd2l0aC11bC1saS1zdHJ1Y3R1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

14 years 9 months ago [\#34668](#34668) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Category listing with UL LI structure](/forum/4-how-to/34534-category-listing-with-ul-li-structure#34668 "How can I create a simple ul li structure with active item/parent classes for the categories?  See attachment:")*

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](http://www.hikashop.com/en/support/forum/4-how-to/29945-styling-qselectq-state-for-menu-items-categories.html#30092)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NTM0LWNhdGVnb3J5LWxpc3Rpbmctd2l0aC11bC1saS1zdHJ1Y3R1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")**
- [![goslingcools's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2994.jpg)](/forum/user/2994-goslingcools "View goslingcools's Profile") Topic Author
- [ Offline](/forum/user/2994-goslingcools)

Less More

- Posts: 38
- Thank you received: 0
-
- [](http://www.cobiz.nl)
-

14 years 9 months ago [\#34731](#34731) by [goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")  Replied by *[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")* on topic *[Re: Category listing with UL LI structure](/forum/4-how-to/34534-category-listing-with-ul-li-structure#34731 "How can I create a simple ul li structure with active item/parent classes for the categories?  See attachment:")*

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:  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/category_listing.PNG) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/category_listing.PNG "&#91;img")

---

COBIZ webdevelopment \| [ ](http://www.cobiz.nl)[ www.cobiz.nl](http://www.cobiz.nl)

- [ ![category&#95;listing.PNG](/forum/attachment/2364) ](/forum/attachment/2364 "...ry&#95;listing.PNG") [ ](/forum/attachment/2364?download=1 "...ry&#95;listing.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NTM0LWNhdGVnb3J5LWxpc3Rpbmctd2l0aC11bC1saS1zdHJ1Y3R1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

14 years 9 months ago [\#34789](#34789) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Category listing with UL LI structure](/forum/4-how-to/34534-category-listing-with-ul-li-structure#34789 "How can I create a simple ul li structure with active item/parent classes for the categories?  See attachment:")*

Ah yes, this was only added for the two other choices of the "Show sub categories" option.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NTM0LWNhdGVnb3J5LWxpc3Rpbmctd2l0aC11bC1saS1zdHJ1Y3R1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

14 years 9 months ago [\#34791](#34791) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Category listing with UL LI structure](/forum/4-how-to/34534-category-listing-with-ul-li-structure#34791 "How can I create a simple ul li structure with active item/parent classes for the categories?  See attachment:")*

You can add it by editing the file "listing_list" of the view "category" via the menu Display-&gt;Views and changing the code:
$link = hikashop_completeLink('category&amp;task=listing&amp;cid='.$child-&gt;category_id.'&amp;name='.$child-&gt;alias.$this-&gt;menu_id);
?&gt;
&lt;li class="hikashop_category_list_item"&gt;

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

We'll add that to next release.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NTM0LWNhdGVnb3J5LWxpc3Rpbmctd2l0aC11bC1saS1zdHJ1Y3R1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")**
- [![goslingcools's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar2994.jpg)](/forum/user/2994-goslingcools "View goslingcools's Profile") Topic Author
- [ Offline](/forum/user/2994-goslingcools)

Less More

- Posts: 38
- Thank you received: 0
-
- [](http://www.cobiz.nl)
-

14 years 9 months ago [\#34819](#34819) by [goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")  Replied by *[goslingcools](/forum/user/2994-goslingcools "View goslingcools's Profile")* on topic *[Re: Category listing with UL LI structure](/forum/4-how-to/34534-category-listing-with-ul-li-structure#34819 "How can I create a simple ul li structure with active item/parent classes for the categories?  See attachment:")*

Ok, I will try that. Thanks!

---

COBIZ webdevelopment \| [ ](http://www.cobiz.nl)[ www.cobiz.nl](http://www.cobiz.nl)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0NTM0LWNhdGVnb3J5LWxpc3Rpbmctd2l0aC11bC1saS1zdHJ1Y3R1cmU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.387 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
