I am using Rules to adjust breadcrumbs based on cck node references for a custom project system. This was working fine in beta4, but has broke in beta5: the tokens for the loaded node are no longer working.
I confirmed using the debug output that the node is being loaded correctly (the CCK token works), and I can use user tokens in the breadcrumbs, but the tokens for the loaded content are never replaced.
It might be related that "Load content" variables are staying across multiple rule sets, each set shows the "Load content" variables for all others.
In each rule set, I used the same name for the loaded content. I tried changing the name on one of them, but it still didn't work. Upon trying to change it back, I got "This variable name is already in use" (although this is the only variable defined within the current set).
Marking this as critical, as it destroys the usefulness of loading content.
Comments
Comment #1
RoboPhred commentedDid some more experimenting, it looks like the root cause for my specific issue is that the [node:*] tokens are returning empty, although the php $node variable still works).
I will make a new bug report for variables carrying over, as it is not related to this.
Comment #2
RoboPhred commentedIt appears this is not limited to the node token. When I replaced the "Load content" id from [node:nid] to
echo $node->nid, the loaded content's tokens all return empty, and the loaded content's php variable returns valid values.The token module continues to work properly with pathauto.
Comment #3
RoboPhred commentedThis also happens in dev as of 2009-Mar-07
Comment #4
RoboPhred commentedStill happens on a new website, so it [probably] isn't a module clash.
Comment #5
amitaibuHave you tried with DV version of token?
What is the token syntax you are using - are you using Rule's syntax (e.g. [node-updated:title]).
Comment #6
RoboPhred commentedHm, just noticed the note about the dev version of tokens. I had it once, but replaced it upon prompting from the updates module.
Comment #7
RoboPhred commentedRight, that got them working again.
I couldn't figure out what was ment by the entry on tokens in the FAQ, and somehow completely missed the mention on the project page...
Comment #8
mitchell commentedUpdated component.