TheExtensionLab / MegaMenu

Magento MegaMenu extension
27 stars 6 forks source link

Mix Category and Attribute Menu Items #10

Closed sprankhub closed 8 years ago

sprankhub commented 8 years ago

Unfortunately, it is currently not possible to mix category and attribute menu items. Imagine a menu structure like this:

menu entry 1 (this should be a link to a category)
menu entry 2 (this should be a link to an attribute / filter)
menu entry 3 (this should be a link to a category)
menu entry 4 (this should be a link to a category)
menu entry 5 (this should be a link to an attribute / filter)

Of course I can manually create the HTML and insert it. But there should be a widget where I can mix and match different link types freely.

JamesAnelay commented 8 years ago

So you could create a more basic template for the category filter and attribute filter (that say just includes the <li> sections) and add that in your module to the widget templates node.

Then in the admin section do something like this

<div class="list-block megamenu-list-block ">
<ul>
{{category widget}}
{{attribute widget}}
{{category widget}}
{{attribute widget}}
</ul>
</div>

Admittedly you need to wrap it in a little html.

sprankhub commented 8 years ago

Yeah okay, but you still need to define your own templates etc. Would be nice if there was some out-of-the-box solution :)

JamesAnelay commented 8 years ago

Agreed I was just updating my comment to say : "I agree though a "Links Block" would be handy where you can enter multiple links and they can go to any page. Have added as a todo."

The links wouldn't get updated when your category or attribute url does though so mabey a stripped down version of each template out the box is the best way to go that way it stays in sync with your urls.

sprankhub commented 8 years ago

You could provide them out-of-the-box and explain the functionality in the docs ;) Thanks for the quick answer!

JamesAnelay commented 8 years ago

Agreed - thanks for the suggestion :) I think we will do exactly that.

JamesAnelay commented 8 years ago

I've now added this to the latest version. Docs here - http://docs.theextensionlab.com/mega-menu/mixed-category-and-attribute-menu-items.html

Thanks for the suggestion.

Note: There is however one issue with it with putting this in the tinymce https://github.com/TheExtensionLab/MegaMenu/issues/16. Sure there is a setting to fix that but not figured out which one just yet.

sprankhub commented 8 years ago

Awesome, thanks! Great to see that suggestions are processed that fast. Keep up the great work!