patch attached

Comments

dave reid’s picture

Assigned: Unassigned » dave reid
Status: Needs review » Reviewed & tested by the community

Marked #1854546: have token_tree use the dialog as a duplicate of this issue. Looks good and assigning to myself to commit.

Jorrit’s picture

Any update? Works for me too, although a collapsible fieldset is probably no longer needed as a container. The link can perhaps be placed in the description of the main fieldset.

damienmckenna’s picture

Maybe the fieldset could be set to be not collapsible?

damienmckenna’s picture

Also, this helps alleviate the problem of too many tokens stopping the token browser from loading, though ultimately #1334456: Enable ajax on-demand loading of sub-trees in the Token help will be the best solution there.

klonos’s picture

Yes, but I believe there's no harm in committing this in the interim.

dave reid’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new777 bytes

Definitely agree this should use the new dialog code, but this looked really strange with the link *inside* a collapsed fieldset, so I removed the fieldset. Please review.

das-peter’s picture

Status: Needs review » Reviewed & tested by the community

Way better, please please commit!
Sites with a lot of tokens are just a pain in the ... to use when all the stuff is rendered at once.

m4olivei’s picture

Patch looks good. I'd say it's good to commit. As an aside, if you had memory issues with token tree's before, using the dialog approach may only delay the issue (as is the case for me with entity_token enabled and having LOTS of fields and entityreference's). I still like changing to the dialog approach.

dave reid’s picture

quicksketch’s picture

As an aside, if you had memory issues with token tree's before, using the dialog approach may only delay the issue (as is the case for me with entity_token enabled and having LOTS of fields and entityreference's).

This approach still helps with overall memory consumption though, since without the dialog you're loading (at least) 3 full sets of tokens on one page, in addition to the form. In the dialog, you're loading only one set of tokens at a time and nothing else.

Patch looks good to me too. :)

dave reid’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Committed #6 to 7.x-1.x.

  • Dave Reid committed 044e828 on 7.x-1.x
    Issue #1784874 by Dave Reid, aaronbauman: Converted admin UI to use the...
dave reid’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
Status: Patch (to be ported) » Fixed

  • Dave Reid committed 0ba7158 on
    Issue #1784874 by Dave Reid, aaronbauman: Converted admin UI to use the...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.