Closed (fixed)
Project:
Node Hierarchy
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2008 at 11:35 UTC
Updated:
16 Feb 2010 at 01:06 UTC
attached is a patch, which brings workflow-ng integration to node hierarchy. it just adds a condition to check whether a node has a parent and an action, which allows one to load parent nodes for any content. This enables one, to use any rule / action on the parent.
This might be useful in a lot of cases. My use case is is setting custom breadcrumbs with tokens, that are not available for parents else. So I load the parent node with workflow-ng and then I use the tokens of the parent with the brand new workflow-ng action "Set breadcrumb" .
patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| node_hierarchy_workflow_ng_support.patch | 2.34 KB | fago |
Comments
Comment #1
fagoComment #2
scottrigbyit works for me -- thanks fago!
Comment #3
scottrigbyI think this patch solves this issue: http://drupal.org/node/226120
Comment #4
ronan commentedThanks for the patch. I'll take a look at it and try to get it committed as soon as I can.
Ronan
Comment #5
ronan commentedPatch looks clean and seems to work, so I've committed it. I can't really verify functionality because I don't totally understand the use case. I'm very interested in what you're doing though, so if you wouldn't mind describing your technique I'd love to hear more about it.
Thanks again
Ronan
Comment #6
fagothanks.
I use workflow-ng to set the breadcrumb for nodes. This is done by a rule like this one:
You can import it and try it yourself with the fresh workflow-ng 2.0. So with this, now one can easily use other tokens, that are not available by node hierarchy's token integration, e.g. a term of the parent.
However, it doesn't build the full hierarchy automatically. If you have grandparents, you would need to configure an action "load grandparent".
Comment #7
ronan commentedThat's a really cool implementation, thanks for sharing that back.
R
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
mootoo1 commentedwhere do i have to put this patch ?
i have custom breadcrumbs installed and i what to have the breadcrumbs also in the view page and in some specific urls
is this the patch i need to make it ?
10x