Needs work
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Feb 2011 at 12:32 UTC
Updated:
16 Aug 2018 at 04:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirComment #2
fago>- Should it be in a collapsed fieldset or not. It currently isn't because the table is just a few lines high.
So let's go without the fieldset for now. :)
>- There is a problem when you have multiple token_tree browsers on the same page. Expanding a specific entry will expand it in all token_tree's on the whole page. I need to ask Dave Reid if there is a way around that.
Sounds good, thanks!
Comment #3
BenK commentedSubscribing
Comment #4
berdirIssue and patch to fix the multiple token_tree's issue is here: #1062492: Multiple token trees on same page can both get expanded when clicking one
Comment #5
fagoLooks like we have to wait for the upstream fix :/
Comment #6
dave reidThat issue isn't a show-stopper. I don't see any need to postpone this for #1062492: Multiple token trees on same page can both get expanded when clicking one.
Comment #7
fagoHaving multiple token trees on a single page would be very common in Rules, so if this doesn't work properly it's a show-stopper :(
Comment #8
berdir@Dave: Yeah, the problem is that you most likely *do* have multiple token browsers on a single patch and when multiple ones are opened, you're browser window jumps around the page like crazy.
Comment #9
dave reidFYI #1062492: Multiple token trees on same page can both get expanded when clicking one is fixed.
Comment #10
fagoGreat.
Patch does not apply an more though.
Comment #11
longwavePatch applies if you use -p0, it predates the git migration. Updated patch attached in git format.
Comment #12
fagoI gave it a try, however it doesn't account for all rules variables.
E.g. if we have 2 variables "node" and "node-unchanged", still only "node" is going to appear in the token help. Even if we have a single node variable called "foo" it won't be called foo in the help.
I'd like to add token-tree integration like that, but I'm not sure how we can make it fit to the tokens the Rules token evaluation system makes possible. Maybe, we could show the token-tree widget for each variable and fix the first part of the tokens manually, so it matches the variable name?
Comment #13
mitchell commentedtagging
Comment #14
tr commentedReroll against current HEAD. Still needs work as per #12, but can be very useful as it is nonetheless.