entity object

Events happening in the community are now at Drupal community events on www.drupal.org.
Lars Bo Jensen's picture

Evaluating Tokens with PHP

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
Subscribe with RSS Syndicate content