keithmancuso / craft-menus Goto Github PK
View Code? Open in Web Editor NEWA simple but powerful menus plugin for Craft CMS built with a custom element type
A simple but powerful menus plugin for Craft CMS built with a custom element type
I'm trying to figure out if there's a way to create a breadcrumb navigation form a menu. I'd like to be able to search a menu's node for the current entry, and then get it's ancestors. Something like this:
<ul class="crumbs">
{% for crumb in craft.menus.getNodes('mainMenu').relatedTo(entry).getAncestors() %}
<li>{{ crumb.getLink() }}</li>
{% endfor %}
</ul>
Similar to how you can output breadcrumbs based on a Structure:
http://buildwithcraft.com/help/breadcrumbs
Is it possible to add a field to a menu item? For example, I may want to see a "description" of the menu. Thanks!
Is it possible to use with craft 3?
Hey,
I am using the getNodes() function but sadly not all my nodes are being returned ( about half my menu), when I reshuffle my nodes (all with various amount of children), dependent on the length of children more appear/disappear.
Is there a max amount of nodes which can be returned?
upon checking the source I found a function in the MenusVariable.php
function getFullMenu($menuHandle, $type)
{
$criteria = craft()->elements->getCriteria('Menus_Node');
$criteria->menu = $menuHandle;
return null;
}
Is this unfinished? do I need to add the type parameter to the query?
Other than that cool plug in!
Cheers,
John
If I create a menu linked to the homepage single
the generated URL is:
example.com/__home__
and the menu is highlighted as active, then if visiting
example.com/
the menu is no longer active
and I have the same content in both URLs
If instead I create a custom URL using just /
then the menu is always active because it sees all pages a children.
Is there a way around this?
What I would like to be able to do is just link to the homepage single and omit the
__home__
from the generated URL.
Thanks.
Hi, I can't install the plugin, maybe something breaks in the recent craft updates.
Thanks, great work!
Hey guys,
awesome job on the plugin. I noticed you guys forgot to put in the getCsrfInput() in the templates/menu/_edit.html. I'll create a pull request to fix this.
I would love to see the ability to add a custom css class (or id) per menu entry.
Hey,
I can't delete menu entries. A delete always results in
Bad Request
POST param “categoryId” doesn’t exist.
As far as I remember it was working before. Could be that it broke during the last craft update?! Any suggestions ...
Using Craft 2.3.2640 and Menus 0.9.
With this plugin installed, I can't use the "Tools" section in settings. E.g. Clear cache, backup database. The "go" button is not available.
I was thinking it would be nice to have a couple more fields in addition to custom url.
An image field.
Summary field.
And as someone else mentioned css class.
This menu plugin is great and works great but I need to create a mega menu of sorts that will show the title, a short summary, and a button which would be the link, no images but that would just be a nice feature to have for mega menus.
Then I could just check if the nodes are child nodes to determine if those fields are used etc as it would then be considered part of a mega menu.
Added the ability to bind menus the node to the categories
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.