donquixote / drupal-crumbs Goto Github PK
View Code? Open in Web Editor NEWMirror of the "Crumbs" Drupal module for breadcrumb-building.
Home Page: http://drupal.org/project/crumbs
Mirror of the "Crumbs" Drupal module for breadcrumb-building.
Home Page: http://drupal.org/project/crumbs
This text is horribly out of date, especially for the 2.x branch ... The ultimate breadcrumbs solution. Powerful, flexible, and as simple and DRY as can be. (code will come soon) Breadcrumbs based on: - menus - taxonomy - system path fragments - existing path alias fragments - not yet existent pathauto alias fragments - organic groups - forum paths Features: - easy to extend. - admin form to rearrange rules. no further configuration needed. - guaranteed consistency: If d's breadcrumb is "a > b > c > d", then d's breadcrumb is "a > b > c". - infinite loop prevention. Requirements: - PHP 5.2 How it works: A plugin is an object that takes a path and returns a parent path. If the rule returns NULL, the next rule is tried. This process is repeated with the parent path, until either - no further parent can be found. - the returned path is the frontpage. - the path is its own parent path. - there is a loop consisting of more than one path. In addition, every rule object has a chance to set a different title for a breadcrumb item (default is obtained from core menu system), or to let the item be skipped in the trail.
This is a meta-issue used to publish planned changes for crumbs-7.x-2.x.
https://github.com/donquixote/drupal-crumbs/tree/7.x-3.x-rewrite-2
(Attention: I might rebase some of this / rewrite the git history.)
The good news: A lot of this is already implemented!
menu.*
, but only menu.hierarchy.*
.->pluginFamily($key)
method to group plugins together.hook_crumbs_plugins()
.hook_crumbs_title_plugins()
?$api->route('taxonomy/term/%')->monoPlugin(..);
. I already implemented this, but I am now thinking that it unnecessarily bloats the classesfindParent__node_x()
is now deprecated, but still supported with a legacy wrapper.uikit
.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.