Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey guys! Can you please help me with creating a custom token for content_profile title for use in CCK imagefield (I want to use this token for 'title' image attribute).
Any help would be appreciated!
Comments
Comment #1
pedrodriguez CreditAttribution: pedrodriguez commentedHello, sorry I'm new using tokens on drupal, but I really apreciate if someone can explain me how to use custom tokens I've try this way: %token_custom[whatever] but didn't works.
Thank you for your help.
Comment #2
pierrecw CreditAttribution: pierrecw commentedhello,
I'm in the same situation discussed here!
I've created a custom token name user name (machine name: user-name), a custom token type an my php code is :
i try %token_custom[user-name] in my webform default value but nothing appear!!
Any ideas ?
thanks in advance
Comment #3
skobe CreditAttribution: skobe commentedsame here.
i created a token containing
$_SERVER['HTTP_REFERER']
then i added %token_custom_referer to the E-Mail-Template
but it didn't work. any ideas so far?
---
OK found a solution for my problem:
I added %server[HTTP_REFERER] to the webform E-Mail-Template and embedded the form as a block on those sites i wanted it. So i didn't use custom token at all.. maybe webform doesn't allow for using other tokens?
Comment #4
manuel.adan