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

#   Menu Help

##

- **[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")**
- [![dniezby's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1792-dniezby "View dniezby's Profile") Topic Author
- [ Offline](/forum/user/1792-dniezby)

Less More

- Posts: 33
- Thank you received: 2
-
-

15 years 6 months ago [\#15873](#15873) by [dniezby](/forum/user/1792-dniezby "View dniezby's Profile")  *[Menu Help](/forum/4-how-to/15873-menu-help#15873 "Ok, I finally figured out the process of creating a menu via the Categories.  I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.  I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.  Any thoughts on how I might fix this or am stuck with it.")* was created by *[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")*

Ok, I finally figured out the process of creating a menu via the Categories.

I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.

I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.

Any thoughts on how I might fix this or am stuck with it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE1ODczLW1lbnUtaGVscD90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 6 months ago [\#15876](#15876) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Menu Help](/forum/4-how-to/15873-menu-help#15876 "Ok, I finally figured out the process of creating a menu via the Categories.  I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.  I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.  Any thoughts on how I might fix this or am stuck with it.")*

You will have to go in the menu Display-&gt;Views and edit the file listing_list of the view category and change the line:
$link = hikashop::completeLink('category&amp;task=listing&amp;cid='.$row-&gt;category_id.'&amp;name='.$row-&gt;alias.$this-&gt;menu_id);

to:
$link = '#';

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

- **[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")**
- [![dniezby's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1792-dniezby "View dniezby's Profile") Topic Author
- [ Offline](/forum/user/1792-dniezby)

Less More

- Posts: 33
- Thank you received: 2
-
-

15 years 6 months ago [\#15879](#15879) by [dniezby](/forum/user/1792-dniezby "View dniezby's Profile")  Replied by *[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")* on topic *[Re: Menu Help](/forum/4-how-to/15873-menu-help#15879 "Ok, I finally figured out the process of creating a menu via the Categories.  I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.  I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.  Any thoughts on how I might fix this or am stuck with it.")*

Hmm, I only found two instances of this in that file...I made the change and it still opens the link.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE1ODczLW1lbnUtaGVscD90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 6 months ago [\#15880](#15880) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Menu Help](/forum/4-how-to/15873-menu-help#15880 "Ok, I finally figured out the process of creating a menu via the Categories.  I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.  I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.  Any thoughts on how I might fix this or am stuck with it.")*

Are you sure you edited the correct view ? If you have several templates on your website you need to edit the file of your main template.

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

- **[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")**
- [![dniezby's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1792-dniezby "View dniezby's Profile") Topic Author
- [ Offline](/forum/user/1792-dniezby)

Less More

- Posts: 33
- Thank you received: 2
-
-

15 years 6 months ago [\#15881](#15881) by [dniezby](/forum/user/1792-dniezby "View dniezby's Profile")  Replied by *[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")* on topic *[Re: Menu Help](/forum/4-how-to/15873-menu-help#15881 "Ok, I finally figured out the process of creating a menu via the Categories.  I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.  I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.  Any thoughts on how I might fix this or am stuck with it.")*

Yeah, I updated the one for my Site template. Also made sure it was category view that I was editing.

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

- **[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")**
- [![dniezby's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1792-dniezby "View dniezby's Profile") Topic Author
- [ Offline](/forum/user/1792-dniezby)

Less More

- Posts: 33
- Thank you received: 2
-
-

15 years 6 months ago [\#15882](#15882) by [dniezby](/forum/user/1792-dniezby "View dniezby's Profile")  Replied by *[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")* on topic *[Re: Menu Help](/forum/4-how-to/15873-menu-help#15882 "Ok, I finally figured out the process of creating a menu via the Categories.  I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.  I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.  Any thoughts on how I might fix this or am stuck with it.")*

Do I need to change all the instances or just one?

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

- **[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")**
- [![dniezby's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1792-dniezby "View dniezby's Profile") Topic Author
- [ Offline](/forum/user/1792-dniezby)

Less More

- Posts: 33
- Thank you received: 2
-
-

15 years 6 months ago -  15 years 6 months ago [\#15884](#15884) by [dniezby](/forum/user/1792-dniezby "View dniezby's Profile")  Replied by *[dniezby](/forum/user/1792-dniezby "View dniezby's Profile")* on topic *[Re: Menu Help](/forum/4-how-to/15873-menu-help#15884 "Ok, I finally figured out the process of creating a menu via the Categories.  I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.  I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.  Any thoughts on how I might fix this or am stuck with it.")*

Here is the code from the listing_list under Category of my default website template.

> &lt;?php
> /\*\*
> \* @package HikaShop for Joomla!
> \* @version 1.4.8
> \* @author hikashop.com
> \* @copyright (C) 2010 HIKARI SOFTWARE. All rights reserved.
> \* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
> \*/
> defined('\_JEXEC') or die('Restricted access');
> ?&gt;
> &lt;?php if($this-&gt;config-&gt;get('pagination')=='top' &amp;&amp; $this-&gt;params-&gt;get('show\_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;params-&gt;get('limit')){ ?&gt;
> &lt;form action="&lt;?php echo hikashop::completeLink(JRequest::getWord('ctrl').'&amp;task='.JRequest::getWord('task').'&amp;cid='.$this-&gt;pageInfo-&gt;filter-&gt;cid);?&gt;" method="post" name="adminForm\_&lt;?php echo $this-&gt;params-&gt;get('main\_div\_name').$this-&gt;category\_selected;?&gt;"&gt;
> &lt;div class="hikashop\_subcategories\_pagination"&gt;
> &lt;?php echo $this-&gt;pagination-&gt;getListFooter(); ?&gt;
> &lt;span class="hikashop\_results\_counter"&gt;&lt;?php echo $this-&gt;pagination-&gt;getResultsCounter(); ?&gt;&lt;/span&gt;
> &lt;/div&gt;
> &lt;input type="hidden" name="filter\_order\_&lt;?php echo $this-&gt;params-&gt;get('main\_div\_name').$this-&gt;category\_selected;?&gt;" value="&lt;?php echo $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value; ?&gt;" /&gt;
> &lt;input type="hidden" name="filter\_order\_Dir\_&lt;?php echo $this-&gt;params-&gt;get('main\_div\_name').$this-&gt;category\_selected;?&gt;" value="&lt;?php echo $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir; ?&gt;" /&gt;
> &lt;?php echo JHTML::\_( 'form.token' ); ?&gt;
> &lt;/form&gt;
> &lt;?php } ?&gt;
> &lt;div class="hikashop\_subcategories"&gt;
> &lt;?php
> switch($this-&gt;params-&gt;get('child\_display\_type')){
> case 'nochild':
> default:
> ?&gt;
> &lt;ul class="hikashop\_category\_list&lt;?php echo $this-&gt;params-&gt;get('ul\_class\_name'); ?&gt;"&gt;
> &lt;?php
> $width = (int)(100/$this-&gt;params-&gt;get('columns'));
> if(!empty($this-&gt;rows)){
> foreach($this-&gt;rows as $row){
> /\* $link = hikashop::completeLink('category&amp;task=listing&amp;cid='.$row-&gt;category\_id.'&amp;name='.$row-&gt;alias.$this-&gt;menu\_id); \*/
> $link = '#';
> ?&gt;
> &lt;li class="hikashop\_category\_list\_item" style="float:left;width:&lt;?php echo $width;?&gt;%;"&gt;
> &lt;a href="&lt;?php echo $link; ?&gt;"&gt;
> &lt;?php echo $row-&gt;category\_name; ?&gt;
> &lt;/a&gt;
> &lt;/li&gt;
> &lt;?php
> }
> }
> ?&gt;
> &lt;/ul&gt;
> &lt;?php
> break;
> case 'allchildsexpand':
> ?&gt;
> &lt;div id="category\_panel\_&lt;?php echo $this-&gt;params-&gt;get('id');?&gt;" class="pane-sliders"&gt;
> &lt;?php
> if(!empty($this-&gt;rows)){
> foreach($this-&gt;rows as $k =&gt; $row){
> $link = hikashop::completeLink('category&amp;task=listing&amp;cid='.$row-&gt;category\_id.'&amp;name='.$row-&gt;alias.$this-&gt;menu\_id);
> ?&gt;
> &lt;div class="panel"&gt;
> &lt;h3 class="jpane-toggler title" id="category\_pane\_&lt;?php echo $k;?&gt;" style="cursor:default;"&gt;
> &lt;span&gt;
> &lt;a href="&lt;?php echo $link;?&gt;"&gt;&lt;?php echo $row-&gt;category\_name;?&gt;&lt;/a&gt;
> &lt;/span&gt;
> &lt;/h3&gt;
> &lt;div class="jpane-slider content"&gt;
> &lt;ul class="hikashop\_category\_list&lt;?php echo $this-&gt;params-&gt;get('ul\_class\_name'); ?&gt;"&gt;&lt;?php
> if(!empty($row-&gt;childs)){
> foreach($row-&gt;childs as $child){
> $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;
> &lt;a href="&lt;?php echo $link; ?&gt;"&gt;
> &lt;?php echo $child-&gt;category\_name; ?&gt;
> &lt;/a&gt;
> &lt;/li&gt;
> &lt;?php
> }
> }
> ?&gt;&lt;/ul&gt;
> &lt;/div&gt;
> &lt;/div&gt;&lt;?php
> }
> }
> ?&gt;&lt;/div&gt;&lt;?php
> break;
> case 'allchilds':
> jimport('joomla.html.pane');
> $found = 0;
> if(JRequest::getString('option',HIKASHOP\_COMPONENT) &amp;&amp; JRequest::getString('ctrl','category') &amp;&amp; $cid = JRequest::getInt('cid',0)){
> $i=0;
> foreach($this-&gt;rows as $k =&gt; $row){
> if($row-&gt;category\_id==$cid){
> $found = $i;
> break;
> }
> $i++;
> }
> }
> $this-&gt;tabs =&amp; JPane::getInstance('sliders', array('startOffset'=&gt;$found,'startTransition'=&gt;0));
> echo $this-&gt;tabs-&gt;startPane( 'category\_panel\_'.$this-&gt;params-&gt;get('id'));
> if(!empty($this-&gt;rows)){
> foreach($this-&gt;rows as $k =&gt; $row){
> $link = hikashop::completeLink('category&amp;task=listing&amp;cid='.$row-&gt;category\_id.'&amp;name='.$row-&gt;alias.$this-&gt;menu\_id);
> echo $this-&gt;tabs-&gt;startPanel('&lt;a href="'.$link.'"&gt;'.$row-&gt;category\_name.'&lt;/a&gt;', 'category\_pane\_'.$k);
> ?&gt;&lt;ul class="hikashop\_category\_list&lt;?php echo $this-&gt;params-&gt;get('ul\_class\_name'); ?&gt;"&gt;&lt;?php
> if(!empty($row-&gt;childs)){
> foreach($row-&gt;childs as $child){
> $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;
> &lt;a href="&lt;?php echo $link; ?&gt;"&gt;
> &lt;?php echo $child-&gt;category\_name; ?&gt;
> &lt;/a&gt;
> &lt;/li&gt;
> &lt;?php
> }
> }
> ?&gt;&lt;/ul&gt;&lt;?php
> echo $this-&gt;tabs-&gt;endPanel();
> }
> }
> echo $this-&gt;tabs-&gt;endPane();
> break;
> }
> ?&gt;
> &lt;/div&gt;
> &lt;?php if($this-&gt;config-&gt;get('pagination')=='bottom' &amp;&amp; $this-&gt;params-&gt;get('show\_limit') &amp;&amp; $this-&gt;pageInfo-&gt;elements-&gt;total &gt; $this-&gt;params-&gt;get('limit')){ ?&gt;
> &lt;form action="&lt;?php echo hikashop::completeLink(JRequest::getWord('ctrl').'&amp;task='.JRequest::getWord('task').'&amp;cid='.$this-&gt;pageInfo-&gt;filter-&gt;cid);?&gt;" method="post" name="adminForm\_&lt;?php echo $this-&gt;params-&gt;get('main\_div\_name').$this-&gt;category\_selected;?&gt;"&gt;
> &lt;div class="hikashop\_subcategories\_pagination"&gt;
> &lt;?php echo $this-&gt;pagination-&gt;getListFooter(); ?&gt;
> &lt;span class="hikashop\_results\_counter"&gt;&lt;?php echo $this-&gt;pagination-&gt;getResultsCounter(); ?&gt;&lt;/span&gt;
> &lt;/div&gt;
> &lt;input type="hidden" name="filter\_order\_&lt;?php echo $this-&gt;params-&gt;get('main\_div\_name').$this-&gt;category\_selected;?&gt;" value="&lt;?php echo $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value; ?&gt;" /&gt;
> &lt;input type="hidden" name="filter\_order\_Dir\_&lt;?php echo $this-&gt;params-&gt;get('main\_div\_name').$this-&gt;category\_selected;?&gt;" value="&lt;?php echo $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir; ?&gt;" /&gt;
> &lt;?php echo JHTML::\_( 'form.token' ); ?&gt;
> &lt;/form&gt;
> &lt;?php } ?&gt;

Last edit: 15 years 6 months ago by [dniezby](/forum/user/1792-dniezby "View dniezby's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE1ODczLW1lbnUtaGVscD90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 6 months ago [\#15887](#15887) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Menu Help](/forum/4-how-to/15873-menu-help#15887 "Ok, I finally figured out the process of creating a menu via the Categories.  I'm working on their style now. Apparently the sliders are built into the system for categories so maybe someone could help me fix this.  I want the main category item to just open the submenu. As it is in the system now, it does open the submenu but it also opens all of the categories in the content area.  Any thoughts on how I might fix this or am stuck with it.")*

You need to replace the line everywhere in the file.

I see that you still have it there:
foreach($this-&gt;rows as $k =&gt; $row){
$link = hikashop::completeLink('category&amp;task=listing&amp;cid='.$row-&gt;category_id.'&amp;name='.$row-&gt;alias.$this-&gt;menu_id);
echo $this-&gt;tabs-&gt;startPanel('&lt;a href="'.$link.'"&gt;'.$row-&gt;category_name.'&lt;/a&gt;', 'category_pane_'.$k);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE1ODczLW1lbnUtaGVscD90bXBsPW1hcmtkb3du) 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.101 seconds

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