Closed (fixed)
Project:
Crumbs, the Breadcrumbs suite
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2010 at 14:39 UTC
Updated:
13 Sep 2010 at 14:20 UTC
Please support Node Reference
Comments
Comment #1
donquixote commentedWow, I like this :)
So, you want to create a nodereference field called field_parent_node, and build breadcrumbs based on that relationship.
Code would look somewhat like this, simple version:
Or, to make it more generic:
Something like this could be part of the next release.
Comment #2
donquixote commentedNote:
I am still a bit undecided about the mechanics for multiple-rule objects.
The "->getTitles()" seems like a reasonable idea, but return an array of paths? I'm not sure..
Comment #3
donquixote commentedUnstable4 contains the nodereference plugin outlined in #1.
Comment #4
Flying Drupalist commentedNot all of the fields have _parent_ in them though... There should be some way to select the field in the UI?
Comment #5
donquixote commentedyes, this is a vague heuristic.
On the other hand, i like to keep things simple, and it is quite easy to extend it manually.
How would the ui look like? really make one crumbs rule for every nodereference available? Or have a dedicated ui, only for nodereference crumbs?
In the current release, every new crumbs plugin will be enabled by default, as long as the '*' sits in either 'enabled' or 'inherit'. I would need a way to have some rules start as 'disabled' by default. We don't want just any nodereference to mess with our breadcrumbs!
Comment #6
Flying Drupalist commentedI don't understand the module enough to give you good feedback, probably will have to wait for a stable release. But this is too inflexible atm.
Comment #7
donquixote commentedI think the concept of rules that can be moved up and down will stay as it is, unless people tell me that it sucks. So, some feedback would actually be helpful to bring this closer to a stable release :)
So, I guess every nodereference field should be a candidate for crumbs, but none of them should be enabled by default.
Comment #8
donquixote commentedFixed in unstable9. Please have a look.
In Admin > Build > Crumbs, you now see a list of available rules that are based on nodereference.
Mine looks like this (after removing everything that is not related to nodereference):
If you wanted to disable noderef-based crumbs creation for webforms, you would move the
nodereference.field_menu_parent_node:webforminto the 'disabled' section.Comment #9
donquixote commented