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

learn more… | top users | synonyms (1)

0
votes
2answers
28 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
25 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
12 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
34 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
24 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
34 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
22 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
34 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
28 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
107 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
18 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
40 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
42 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
60 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
22 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
19 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
98 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
160 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
47 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
42 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
58 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
36 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
68 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
180 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
56 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
10 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
37 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
60 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
29 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
57 views
+50

“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
56 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
12 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
90 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
1answer
196 views

How to Display Token by PHP in Block

What is the way to use tokens in PHP code. I have tried but didn't works. Suppose: I need to show the user profile picture url. So, this code do not working: <?php echo ...
0
votes
0answers
28 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
62 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
109 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
66 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
140 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
191 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
28 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 ...
0
votes
0answers
70 views

Multisite with Drupal 7 [closed]

I am looking for a multisite solution (something like Drupalgardens.com) with Drupal7, actually i didn`t found something workable (i found a lot of solutions but none of them supports an automated ...
2
votes
1answer
135 views

Webform Tokens lets me access form meta-info but not user-submitted values (with Fill PDF)

I'm attempting to use the Fill PDF module to populate an editable pdf. The data source is a Drupal Webform submission. I'm specifying those values to Fill PDF using tokens from the Webform Tokens ...
0
votes
0answers
38 views

Tokens Missing after migration

I migrated my site to another instance of mysql running on the same server since the earlier db had some problems. After the move everything works fine except that the tokens are now missing and ...
3
votes
4answers
94 views

How to substitute values on a page, without PHP?

There are certain values that are liable to appear in many places on my site (corporate-owned stores, independent stores, # of brands carried, and so forth) that content authors and editors are not ...

1 2 3 4 5