Questions related to the Token module, or a form of token replacement system.

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

Token format for webform values inside a fieldset

We're on webform 7.x-4.0 alpha6, and we're trying to set up emails using the tokens webform offers us. The documentation for token values contains the following token description: Webform ...
0
votes
0answers
20 views

VBO Mass Edit Entity - Tokens and maxlength [closed]

I'm using Views Bulk Operations to modify about 3000 Drupal Commerce product entities. I'm trying to rename the 'Title' and 'SKUs' fields using tokens. The following string is what I am entering into ...
1
vote
0answers
16 views

Module to create tokens that insert node field data based on node title

I have a Date entity bundle based on node that has a date field (starting and ending). I would like to be able to give my content admin's the ability to insert a date with a non-techie friendly ...
0
votes
3answers
63 views
+50

Looking for node revision author token

According to http://drupal.org/node/252241 a revision author token may be available. However I do not see anything referencing revision:author (variation?) in my list of available tokens. Is there ...
0
votes
2answers
34 views

curent language token on block body

what is the token used to get the curent language, I want to use this token on a link in the block body, like that: <a href="/[curent-language]/about-us">About us</a> I find this token ...
1
vote
1answer
28 views

Rules replacement pattern for image type field

I am using Rules and HTML mail module to send HTML email on various events. It is working fine, but I am getting problem in rendering image field(ie image) in email template. I have field ...
0
votes
0answers
13 views

Taxonomy Tokens - How to change Seperator

I'm using taxonomy tokens in the alt image tags and Meta Tags module (page title and description). When my tokens are printed out they take this format: Term name, -name with depth --3rd level depth, ...
1
vote
1answer
36 views

Custom Path Alias with Initial Letter as Token

For various reasons, I need to change my custom path alias for a taxonomy type as follows... FROM: /composers/aardvark TO: composers/a/aardvark So I'm looking at either creating a custom token, or ...
0
votes
0answers
40 views

How to track mailchimp signup form location

Mailchimp has an article that explains how to track signup form locations by adding hidden fields to the mailchimp form. All well and good, but if you put the form in a Drupal block, the location ...
1
vote
1answer
27 views

How can I use Rules to send an e-mail to the author of a node linked by an entity reference field?

I have a content type called Help Wanted. I have another content type called Reply to Help Wanted. The reply content type includes an entity reference field that contains a node reference to the ...
0
votes
0answers
37 views

Username Token in block doesn't work

I'm using Drupal 7 and also installed the Token filter module. I want to display a welcome message in block, I used this token `Welcome [user:name] !' but the token is not working it displayed as ...
1
vote
1answer
25 views

%post[key] value in webforms not rendering correctly D6

I am trying to use "Special Tokens" in the webform module (6.x-3.18) on Drupal6. I'd like the data to populate a hidden field I've created with the email field on the same form. Under default value ...
0
votes
0answers
39 views

Webform data token usage

I have a multi-page form and on the first page are textfields for a user to provide his/her first and last name. On the form's next page is a markup component with a message asking the user to ...
0
votes
0answers
14 views

Limit tokens from types in token_tree

I'm using token_tree to insert tokens into a form, but I'd like to limit the token_tree options to only certain tokens. I already limited the types to node and user, but within those types I'd like ...
0
votes
0answers
38 views

Available tokens in the FIlter Section of Views

Are any tokens(as nid) available in the FILTER CRITERIA of Views (see pic bellow). For example I can sort out all nodes with greater than the current NID...
6
votes
1answer
112 views

What's the difference between !, %, and @ in replacement tokens?

I'm using the Message module on Drupal 7. For Replacement tokens, the help text says: A comma-separated list of replacement tokens, e.g. %title or !url, of which the message text makes use of. ...
1
vote
0answers
19 views

How to set title on node creation using token in action rule

I've a action rule that add a node of type "profil". The aim is to set the title of that node to the author name (i've got fields for that...) Here is an export of rules section do : "DO" : [ { ...
0
votes
0answers
44 views

Using text field tokens in other text fields from the same node

How can I use field tokens in text fields? I use drupal 7. I have a content type, with text fields: field_text1, field_text2 etc. I don't want to display these fields, so they are hidden, but I want ...
0
votes
0answers
43 views

token_replace intermittent failure

I have a module which implements token_replace. It is used to display a proper phone number in the banner depending on a customer type with a default value in place if we don't know, and is used for ...
1
vote
0answers
61 views

Hierarchical taxonomy fileds' values as node path in Drupal 7

I have a vocabulary with 2 levels of terms. As my term names are usually rather long (e.g. "Institute of Computer Science and Information Technology") I added a field "short_name" to the vocabulary ...
0
votes
1answer
23 views

How can I use tokens for Addressfield values without using Addressfield_tokens?

I would like to use the Town/ City field as a token for Pathauto. I thought the Addressfield_tokens module was perfect for this, but Entity Tokens breaks Pathauto's patterns control panel; the issue ...
0
votes
1answer
20 views

simple numeric token string 2 max 3 digits

I need to generate numeric string and append it at the end of node url. Tried using some token random number options but the result is 10 digit number which is not neccessary for my purpose. Is there ...
0
votes
0answers
113 views

Access denied for image urls created via image style although derivative token is appended?

I want to apply an image style to an image and use it via CSS: if (isset($node->field_images_image['und'][0]['filename'])) $vars['blurred_background'] = image_style_url('background_blurred', ...
0
votes
1answer
21 views

Module to make View Tokens available

I'm looking for a module which adds Views into tokens. E.g within some content, I want to be able to use [view-vid], or something similar. Is there anyway for me to do this without needing to write ...
1
vote
1answer
187 views

Why is Drupal adding token on image url

When I'm use the image_style_url(), function I got this token at the end of the URL: ?itok=yjoxJwQh. Drupal uses a different token for styles and script, eg ?mk4o7m. How does this affect caching and ...
0
votes
2answers
49 views

Get view output without rendering (with substitutions)

I've got a view that I'm accessing via code and used to pull fully rendered view code and work great. But after one of the updates (looking like 6.x-2.15 or 6.x-2.16 maybe changed it?), I can no ...
0
votes
1answer
44 views

using an existing token as a variable in a custom token

I am using simplenews to send out a newsletter. I have a custom module. It has a table that relates a user code to the user's email. email_address user_code ...
0
votes
1answer
64 views

Error in php snippet using tokens: Show profile field if it isn´t empty

I have this core profile field in Drupal7: profile-curso-basico. I want it to be shown in the user´s profile only if the field has information in it (it´s a deprecated field, but some old users have ...
0
votes
0answers
36 views

Token separator in Page Title

I'm using the Meta Tags module to pretty up my page titles using tokens. I want to display the taxonomy term parents in the page title, with separators. It's working, except I need it to also END ...
0
votes
1answer
37 views

Problem with specialchars/tokens sent by email with rules module

I'm using rules module in D6 I have an encoding problem in the email's body sent by a rule while using tokens: Name : [node:field_company_nid-title] In the email, it appears like that: Name : ...
0
votes
1answer
71 views

Custom token [node:customtoken] not available in rules action 'set a data value'

I've created module with hook_token_info() and hook_tokens(). Now i can see my token in list of all availble tokens: $ drush token | grep customtoken node customtoken Node related ...
1
vote
1answer
226 views

How to get url alias of a link, when rewriting field output in Views

I have an image field in Views, for which I must use "Rewrite output" option. The output of the image field is this: <a href="/taxonomy/term/[tid]" title="Album &quot;[name]&quot;" ...
0
votes
1answer
62 views

Can I add the value of a field in a checkout pane to a completed order email?

I would like to add a select list box to a checkout pane in drupal commerce that will allow me to use the selected value as a token to be added to the completed order email?
0
votes
0answers
11 views

How can I use tokens with Geocoder in D7?

I am using the Geocoder and Geofield modules, and would like to find a way of deriving token information to use with Pathauto. There doesn't appear to be a set of tokens for Geocoder. Is there a way ...
0
votes
1answer
39 views

D6 Is it possible to set node reference field and use this value in another field on the same node/add form?

I have two node reference fields in a Content Type. Driver Manager Each driver belongs to a certain organisational unit. Every organisational unit has a set of managers. I need the organisational ...
1
vote
1answer
61 views

add ajax form-like functionality inside node

I have an article on my Drupal site and need to add some calculations to it (to better illustrate a topic). It means, three textfield inputs and a button, after clicking the button a calculation ...
0
votes
0answers
32 views

Formatting taxonomy tokens

I am using tokens to build a description in the meta tags module. In the description, the token prints out the taxonomy terms as comma seperated. What I want to do is place an 'and' after the last ...
0
votes
1answer
64 views

“Add an item to a list” using rule just works for plain text

I created a rule with an action which "Add an item to a list". The value of the item to add is this (also see my picture bellow) Voucher: [node:title]. The code for this voucher is ...
0
votes
0answers
58 views

Rules event “After saving new content” doesn't fill nid token, how do I get the nid in rules this way?

Do I have to write a module hooking after a save or providing a new rule trigger? If so, how? The closest hook I can see is hook_node_insert() which still is triggered too soon for the nid to be ...
0
votes
0answers
13 views

Outputting taxonomy terms in a re-written field view

I have a some fields in a view that I'm grouping together with tokens in a re-written field. One of the fields is taxonomy terms. I'm re-writing output as: [field_a] [field_b] ...
2
votes
1answer
95 views

Path Auto Use Parent Tag, If it doesnt exist use current tag

OK. I have Pathauto and Token I have the following Tag Structure: Drinks > Beer I want to use path auto to make all nodes tagged with Drinks or Beer to have a URL of /Drinks/[Node:title] So ...
0
votes
2answers
243 views

How do I display tokens in a block using PHP code?

What is the way to use tokens in PHP code? I need to show the user profile picture URL, but the following code doesn't work. <?php echo "[current-user:picture:url]"; ?> How do I display ...
0
votes
0answers
31 views

Token value persists with old data despite cache clearing

I use Token to display taxonomy in breadcrumbs and node titles on pages created with CTools' page manager. The taxonomy term descriptions were first input with HTML code, which I suppressed later ...
0
votes
1answer
66 views

Is there any replacement module for token actions and token starter modules in D7?

I am using TokenActions and TokenStarter modules in my one of the project which is in D6. Now, I have planned to upgrade it into D7. I have found the D7 version of Tokens module but I didn't find ...
0
votes
1answer
127 views

Link path auto url to view field

Does anyone know if its possible to attach a link to a specific node in a custom view and have that link be the path auto link? I have a custom view that pulls in a title text field from an article. ...
0
votes
1answer
68 views

How to differentiate token replacement from array index

How to escape left square bracket - [ and Right square bracket - ] when used in views so that it is not mistaken for a token. I have what I hope is a simple question to answer. I have tried searching ...
2
votes
2answers
154 views

Any way to get localized term names in node paths

I have a node type "news" with an included term reference field named "newscategory". i18n-module incl. taxonomy-i18n is also installed, vocabulary is translatable and all terms are translated. But ...
0
votes
1answer
33 views

Can you display data dynamically from a textfield in the URL and Name of Views?

I have a content type of Product which includes a text field for the user to enter a Brand. This text field is open to the users to enter correctly, as there are hundreds of brands and I don't want ...
1
vote
1answer
211 views

Tokens in Drupal 7 don't display

First, I am creating a blog site and I used Display Suite to create a layout for the article content type. In one of the regions I created a custom code field that had "Posted by [user:name] on ...
0
votes
0answers
30 views

How to use Content Profile fields in Signup confirmation email?

I'd like to personalize signup emails being sent via the Signup module. I would like to use some Content profile fields in the email being sent instead of the unfriendly username. I have located the ...

1 2 3 4 5