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

pedrodriguez’s picture

Title: Custom token for Content Profile title » How can I use Custom token on a webform?
Issue tags: +how to use custom tokens

Hello, 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.

pierrecw’s picture

hello,
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 :

global $user;
$user_fields = user_load($user->uid);
echo $user_fields->field_nom['und'][0]['value'];

i try %token_custom[user-name] in my webform default value but nothing appear!!

Any ideas ?
thanks in advance

skobe’s picture

same 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?

manuel.adan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)