Currently, prerendered list fields does token replacement on the entire rendered list, which makes it impossible to use with link tokens.

Here's a weak stab at fixing this. A bit of code to add to the pre_render() method and a custom advanced_render() method for views_handler_field_prerender_list.

Only works with simple separators. Proper patch to come.

Comments

merlinofchaos’s picture

Status: Active » Needs review
StatusFileSize
new23.47 KB

Please test this patch. I think it's ready to go.

It'll require all modules that use pre_render() to update their objects to be able to use this, but it does gracefully turn off advanced rendering for pre_render_list types that don't.

merlinofchaos’s picture

Status: Needs review » Fixed

Since some other work I'm doing is also in this space, I committed this to avoid patches colliding. Let me know if there are any problems with this.

Status: Fixed » Closed (fixed)

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