Currently Views 3 provides the Global: Text Area item in the Header and Footer sections. Global: Text Area supports Text Filters, which can enable the use of Token API tokens via the Token Filter module.

Unfortunately, within the Fields section, Views supports the Global: Custom Text item, which does not support Text Filters and therefore can not access Token API tokens. I would like to be able to access Token API tokens within a Views row. (see image below)

screen shot

CommentFileSizeAuthor
text_filters.png62.89 KBcluther

Comments

gauravkhambhala’s picture

Issue summary: View changes

Subscribing.

inteja’s picture

This would be really handy.

ñull’s picture

I agree that this inconsistency should be solved. At the moment it is hidden to the administrator what kind of filtering is applied and adding this feature would make it clear.

ctrladel’s picture

Having tokens available in custom text areas would make life so much simpler

vincent_jo’s picture

Any workaround for this issue?
I need to display the current date ([current-date:short]) to replace the end-date in a calendar-list.

argiepiano’s picture

You can do this with the Views PHP module (https://www.drupal.org/project/views_php). This module creates a Global: PHP field that allows you to insert PHP snippets in a Views. You can use the following PHP code in the Output code section of the PHP field to display the current date:

echo date("F j, Y");
argiepiano’s picture

Another way of inserting values into Global: Custom Text (and other fields) during the pre-render stage is explained here:
http://drupal.stackexchange.com/questions/84458/how-to-insert-values-int...

deanflory’s picture

I take it this 3 year old issue isn't resolved yet right? A simple token should be allowed in a custom text view field or a rewrite in any view field. Using either of argiepiano's options completely disrupts the intended ease of use that is expected with the token module, plus one should not have to write pages of code to do one simple thing.

Are tokens allowed all over Views in D8? Is this something that needs backporting?