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

learn more… | top users | synonyms (1)

0
votes
1answer
17 views

File (Field) Paths serial token

I have an image field type configured to accept an unlimited number of values. Using the File (Field) Paths module I have set the file name field value to [node:title].[file:ffp-extension-original] ...
0
votes
0answers
35 views

Why, when I clear the cache, does the token list become empty?

When I clear the cache, all tokens listed in the list disappear. When I use Drush to clear the cache (drush cc all) it works fine; it doesn't show any error happens. If the token list is empty, ...
0
votes
1answer
30 views

How do I Pass a Nid to a webform and create a token for a different field on that node?

Use Case: I have a content type called "Team" which contains an email address. I have a view that creates a link to create a webform to contact the Team member and prepopulate the email address in a ...
0
votes
0answers
16 views

Views link to contextual filter multi language

Here's the issue. I have two views, one is just a block which displays all of a certain content type and the other is a page (path = /car-desc) which displays a specific node through the contextual ...
0
votes
0answers
22 views

Extract view fields with token replaced

I have a "view" that return me the JSON fields version (views_datasource is the module I use). One of this fields is a field of type "Long text" where is present 1 token [mytoken] that in the normal ...
1
vote
0answers
61 views

Drupal 7 - how to add custom field token to webform default value?

I want to add node-field data into the web from block via tokes as with Webform 7.x-4.1 this should work. But tokens from custom fields are not available in a webform(block) ? [node:title] and ...
0
votes
0answers
10 views

Tokens for multivalue imagefield in rules mail

I have a multilingual Drupal site using entity translation. I have a Content Type for products with a multivalue imagefield (Field is Language neutral). So nothing Special so far. Now i want to Send ...
0
votes
1answer
12 views

Make tokens expire

Am working on an Organic Group use case where a user can join a group using a one time invitation link sent by email. How do i make the token attached to the email link expire once its used so that ...
0
votes
0answers
6 views

Does metatags quick module use tokens

I am trying to create metatags for a clients website. I would use the Metatag module, but their version of Drupal is not complient with the current version of the module and the site is not available ...
1
vote
1answer
26 views

Render tokens in hook_node_view

I am creating the following pseudo field in hook_node_view: function user_guides_node_view($node, $view_mode, $langcode) { $node->content['field_mytest'] = array('#markup' => '<p>This ...
0
votes
1answer
32 views

Rules token one-time-login-url is showing up empty

I have a rule that, after submitting a webform, a user gets created and then sends two emails to that user. One saying their form data is being looked at by someone for review before they get a ...
0
votes
0answers
26 views

Tokens are not loaded, showing as “ ” [on hold]

I created tokens for my image upload module and when I insert them in the field, they just show up as "". ex.: the name is set up as : image-[title]-[date]-[site-name] but they just show up as ...
0
votes
1answer
36 views

Custom formatter for a multi-valued field

I have a multi-valued image field and I'd like to use its delta value with the Custom Formatters module. What I want to do would be really simple with html+tokens if it were to work: <div ...
0
votes
1answer
14 views

User Import: Possible to use other variables in the user notification email?

We are using the User Import module to populate the User list, and having it send out a notification email with a temporary login URL. In the notification email section of User Import configuration, ...
0
votes
0answers
11 views

(current-user:points] token showing points of the full category

The token [current-user:points] showing points of the full category. Example, the token value displays the points of all articles in the article section and I had added the token in every article and ...
-3
votes
1answer
44 views

how can I resize user's picture with css [closed]

Can someone please help with the above question, I want to display [current:user-picture] using token, which has a initial size of 100x100 and resize it to 20x20 with css. But its not working. I'D ...
0
votes
0answers
56 views

Insert HTML tags into a colorbox caption (a token-enabled field)

I want to obtain custom colorbox captions. By means of Entity API (as per colorbox custom caption via field collection), I can insert various fields into the caption. The problem is that the contents ...
0
votes
0answers
5 views

Vocabulary name token in Display

How do I get the name of a vocabulary in the Display of a content type that has the vocabulary as a term reference field? If, in the label field I use [vocabulary:name] then I just get it labelled ...
0
votes
1answer
61 views

node:menu tokens not working in Pathauto

I can't get any node:menu-based tokens to work in my Pathauto replacement patterns. Other tokens, such as [current-user:name] or [node:language], work fine. But the token I am trying to use, a ...
0
votes
0answers
21 views

New to rules, want to send a custom email to myself when order is made

im really new to Drupal and I brought onto this project to learn a little bit about the development process. When a person makes a purchase on the site, and a payment is received I not only have an ...
0
votes
0answers
26 views

How to expose a persistent variable as a field for use in view

the problem I've been searching around for a while now and have not found a way to achieve this, which I find quite surprising so must mean I'm missing something. I have a particular base path ...
0
votes
1answer
18 views

Get all registered Users into a Field Type List

I would like to create a content/form where an authenticated user is able to choose another registered user from a list/dropdown. I've been searching for ways to get this done but am not able to find ...
1
vote
2answers
54 views

Programmatically changing the global site name?

I'm making a multi-site setup using the same install and the same database, basing it off domains. I'm trying to programmatically alter the site_name variable so that it displays a different site name ...
1
vote
0answers
32 views

How to use drupal tokens using token_replace

Recently i developed a module which will prompt a message to user when he logs in Hi xyz .thanks for vising the site. using drupal_set_message.Now in order for this to work i had to use ...
1
vote
1answer
36 views

Possible cause of the one time login link sent via e-mail to be broken?

edit: it appears to be a bug, reported here https://www.drupal.org/node/2329723 When I, as the Admin, add a new user and let Drupal notify him via mail, the one-time login link is broken: ...
0
votes
2answers
42 views

How do i print username into url after user logs in

currently i am developing a drupal site and i need to print username into url after user logs in ... loging is done with Login destinations module ... usually user is not redirectet but stays at the ...
0
votes
1answer
29 views

Webform populate text component with encoded url values

How to populate a webform component with encoded values. For exampmple my url http://example.com/abc?submitted%5Bthis%5D=1 I tried to use token [current-page:query:this] but it doesnt work.
0
votes
0answers
51 views

Use Exposed Filter value in no result Global text

I'd like to use the value of the chosen Exposed Filter (=dropdownlist) in the Global text block when there is no result. In detail: Exposed filter (which is a taxonomy list) has 3 values of ...
0
votes
1answer
13 views

How to add data to a message type custom field that's inherited by all message instances?

I'm using the message module, and I have some message types. Each message type needs to have a node reference field on it whose value would not change for the entire message type. But different values ...
0
votes
0answers
13 views

Why are quotes printed through a token displayed as &quot; in an e-mail? [duplicate]

In Drupal 6, I'm using the rules module to send an e-mail every time a new node is created. For the subject of the e-mail I use the token [node:title]. The problem is, that in the e-mail subject ...
0
votes
1answer
53 views

Token Value to insert URL of page into field

I am trying to create a webform to appear at the end of all my site pages that asks if there is anything about the page that should be improved. This is dumped straight into the page. In order for ...
0
votes
1answer
63 views

Automatic adding of the subject to the contact form

I have the block that is shown in every node of one content type. The block contains the link (the anchor tag) which leads to the page with contact form. Is it possible to add subject automatically ...
0
votes
0answers
9 views

Menu Token: Menu does not expand / set active trail

I am facing a issue while using the menu token module: I have setup menu items using following or similar paths: user/[user:uid]/auctions-pre The path is set with the correct uid and looks just ...
0
votes
0answers
27 views

Tokens are not displaying in email [on hold]

I have installed the Token module in my project and created one trigger that is birthday trigger. When I set action on that trigger then it has not replaced tokens, it displays as it is. Why?
0
votes
0answers
35 views

render token in node not in rendered entity

A custom token [custom:slideshow] inside a node body renders correctly. When the node is displayed as a rendered entity, the [custom:slideshow] is rendered literally! This does not happen for ...
0
votes
0answers
30 views

tokens disappeared after cache flush

After one of my cache flushes, I found that all of my tokens disappeared. In the browser tab, the title was now [current-page:page-title], [site:name] and I can't edit any content as it gives me this ...
1
vote
0answers
44 views

Exposed Filter Input Token

Quick question, is there a token that can be used within the drupal ui to grab what has been typed into a exposed filter text box. I am asking because, for example, when a user applies this filter, ...
0
votes
0answers
36 views

Change node path token to URL to file

In content type I have field called field_pdf. How to change node token [path] to URL to file which is uploaded to field_pdf? I need this to use [path] token in Views.
0
votes
0answers
55 views

How to replace a Token in the PHP evaluation of a Rule?

I'm trying to grant Userpoints to users with a Rule. The Rule first calculates two integer values 'New value' and 'Old value'. Debugging these numbers shows that there's no problem with them. ...
0
votes
0answers
80 views

No Tokens Available

This started happening today. The only other thing I can find is this similar unanswered question... No Tokens Available Errors as follows on the admin/help/token page... Notice: Undefined index: ...
0
votes
0answers
78 views

How to use a Token in my Message's text with PHP code?

I have a Message type with a entity reference field 'User reference'. A Rule creates a Message and sets the reference field's value. This is the code that I'm using for the Message text (PHP code ...
0
votes
1answer
54 views

Send email with custom tokens on event?

I am trying to make a rule which when acted upon will send an email with custom details based on the rule arguments. I made my rule event and that's all working fine it shows up, but when I add an ...
0
votes
1answer
31 views

Is it possible to use a sort of constant or a custom token in the rewrite section of a views field?

My use case. I have a portion of a URL of another site (www.example1.com) under each of my nodes (let's say node type B). Each of these nodes can be related with another node (let's say node type ...
0
votes
0answers
11 views

How to make an email field with token subject?

I want to make a field that would be a static email link, with the subject being the title of the node. Seems simple, but the email field module does not offer any subject field customization. Any ...
0
votes
0answers
32 views

How do I display the author name of the newest revision of a node?

So far - when adding custom content to a panel using tokens - I can show author name and date of when a node was created, as well as the last-changed-date. But I can't seem to find the correct token ...
0
votes
0answers
17 views

Can comments entity be used as alternative to entityform

With no offense to the entityform module, I am facing some issues when entityform is attached to node. Few of them are node related tokens are not available/accessible to entityform module ...
0
votes
0answers
13 views

Metatags analysis and blocks

I am trying to get my site to use drupal module metatag to display description, abstract and keywords on the front page, if i type something into the metatag module say test it displays the result on ...
0
votes
0answers
38 views

How to get commerce product tokens in product display node

I'm using token and token insert to use tokens to create some default text that references fields from the node and the commerce product referenced by the node. I am able to insert the tokens, but ...
0
votes
1answer
58 views

Programmatic filefield value/Default Filefield value

I have a module that takes a file uploaded to an entity, changes it and then saves the new version on my server in a folder based on the user id and entity title. $where = 'private://' . ...
0
votes
0answers
42 views

Missing token replacements in Rules generated mail?

I have Rules set up to send me a mail when a critical watchdog system log is created. It's sending me email, but all the tokens are coming out blank. I have Subject: watchdog error: User ...