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

learn more… | top users | synonyms (1)

0
votes
0answers
7 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
3 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
20 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
7 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
22 views

Tokens are not loaded, showing as “ ”

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
0answers
12 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
9 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
10 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
41 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
18 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
44 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
20 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
21 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
12 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
45 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
22 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
21 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
40 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
20 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
34 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
11 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
40 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
53 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
21 views

Tokens are not displaying in email

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. If any ...
0
votes
0answers
29 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
27 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
29 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
22 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
43 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
67 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
73 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
44 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
29 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
8 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
30 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
11 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
31 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
48 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
30 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 ...
2
votes
1answer
111 views

Howcan I find webform e-mail submission values keys?

I created a webform and now I want to send an email on sebmit to the customer but I'm not understanding how to take the submission values one by one and use it in the email body. The submission ...
0
votes
0answers
52 views

Print out site's front page URL token in a webform email?

How do I print out my Drupal 7 site's front page URL token in a webform email? The token, [site:url], just outputs "[site:url]" in the email.
0
votes
1answer
46 views

Use tokens for cck field default value

Is there any module or code hack to use tokens to set cck field default values ? i have a content type with contact details fieldset, this fieldset have some fields to collect data from current logged ...
0
votes
0answers
184 views

Node field value to entityform field using token

Entityform is embedded in node using enityreference and for back tracking Entityreference Current is configured to couple submissions to node. Actual setup is as like described in the D.O issue ...
0
votes
0answers
21 views

How to use site tokens (/admin/help/token) in view fields

If any of the tokens (site level tokens) given here => https://drupal.org/node/390482 needs to be used in a view. What needs to be done? For example a [current-user:uid] etc. If that needs to be used ...
3
votes
1answer
71 views

How are user.tokens.inc and other similar files included?

I notice that many core modules in Drupal 7 implement hook_token_info and hook_tokens in a hook.tokens.inc file, but I can't figure out how this file is included. Should I be doing the same with my ...
1
vote
2answers
339 views

Token insert with CKEditor doesn't work

I'm using the CKEditor Module in combination with the Token insert (ckeditor) to show a user property in my body. It looks like this: But the results shows just the static text instead of the user ...