• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Marek
  • Private: No
  • Open Date: 19.04.13, 18:21
  • Opened by: Alex
  • Closed by: Marek
  • Closed on: 25.04.13, 19:16
  • Reason: Not a bug

Ticket #352 - Megamenu

Hello Alex and Marek,

I would like to display only 5 Subcategories ( not all the categories ) in each Category from Megamenu , Asylum theme. How can i do this ?
Thanks a lot

alex

Comments

Alex 21 Apr 2013, 10:17

Hello. Show me please with the screenshot the issue

Alex 23 Apr 2013, 15:17

Hi Alex,
Here’s my menu i would like to LIMITE to 5 subcategories display for all the categories but i don’t find where in blockmegamenu.php
to add sql limite.
Thank you :)

Marek 24 Apr 2013, 10:06

Hello Alex.
- Open the file blockmegamenu.php
- Find the line:

foreach ($children as $child) {

- Paste condition

if ($i < 5) {

after the code above
- close “if” condition before the end of “foreach” cycle

Alex 25 Apr 2013, 13:29

Hello Marek,
Thank you for your help,

It’s works well with empty cache , but the $i variable limite the children AND the Parents categories too :(
I would like just limite the children only… Hope you release a new module megamenu with more option for example with a subcategory add “see more »” when subcategory > 5
Regards
alex

Marek 25 Apr 2013, 19:16

Ok, if I’ll find a free time I add such function.