Evaluating Tokens with PHP
Posted by Lars Bo Jensen on October 1, 2011 at 12:25pm
Dear DS experts,
I've got a small problem: I have a content type 'arrangement' with a field, that can contain several values, e.g. 'excursion' and 'lecture'. I am displaying teaser, full node and so on with Display Suite on Drupal 7.8, and THANK YOU for DS, it's GREAT, and I want it to display like this:
'Excursion and lecture: Lüneburger Heide'
I have added a code field for the header using tokens:
[node:field_aktivitetstype]: [node:title]
It displays:
'Udflugt, Foredrag: Lüneburger Heide'. Flaw: both values have a capital first letter.
Read more