Is it possible to use "regular" tokens in a views global custom text field? Could it be? I am trying to use something like [site-name] - I know I can use the "replacement patterns" from other fields in my view but I also want to use other tokens.

Comments

ilbeppe’s picture

Subscribe!

Dave Reid’s picture

Status: Active » Fixed

Yes, if you're using a 'Global: Text area' with a text format that has the token filter enabled for it, then it should replace tokens just fine.

Status: Fixed » Closed (fixed)

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

cluther’s picture

But how do you get Global: Text Area in the fields section? I can add a "Global: Text Area" field in the Header section of a view, and it provides the Text Filter option which substitutes tokens just fine. But in the row Fields section I have only the option of "Global: Custom Text" fields, which do not have the Text Filter option and therefore can't utilize the token filter.

screenshot

(Thinking that perhaps this post belongs in the Views forum, I cross-posted there. See https://drupal.org/node/2037473)

deanflory’s picture

Issue summary: View changes

I'm with you cluther on this. I find it hard to believe this hasn't been resolved yet. Is this allowed in D8?

jjmackow’s picture

I've used 'Display Suite' for dealing with this in the past. Within Display Suites' supported modules, you can created a coded field and then use tokens within the coded field to get the desired result within the list of fields for a view.

deanflory’s picture

Thanks jjmackow! That was actually next on my list of ways to try and get this to work.

deanflory’s picture

I think moving this to Views might get some more eyes on this...and reopening it.

deanflory’s picture

Project: Token Filter » Views
Version: 7.x-1.x-dev » 7.x-3.x-dev
Component: Documentation » Code
Category: Support request » Feature request
Status: Closed (fixed) » Active
truls1502’s picture

It would also be great if it is possible to use tokens on "Title > Title"

Anybody’s picture

I can confirm that, as described in #4 this is a bit inconsistent and there are some cases when it would definitely be helpful to have that option. Does someone know a contrib module for that until it might be in views core one day?

lincolnbergeson’s picture

This would be a really great feature!

Yuri’s picture

Someone used the Advanced Text Formatter for this purpose..
https://drupal.stackexchange.com/questions/178576/is-it-possible-to-use-...

truls1502’s picture

But it would be great if it is possible to have included in Views-module, right?