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

learn more… | top users | synonyms (1)

0
votes
0answers
18 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
14 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
10 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 ...
0
votes
0answers
9 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
12 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
16 views

How to replace a Token in Rules' PHP?

I'm trying to grant Userpoints to users with a Rule. The Rule first calculates two integer values 'New value' and 'Old value'. Debugging this numbers shows that there's no problem with them. ...
0
votes
0answers
37 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
58 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
20 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
24 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
6 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
22 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
8 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
14 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
32 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
16 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
40 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
37 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
16 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
72 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
13 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
44 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
1answer
101 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 ...
0
votes
0answers
24 views

Issue with token module in Drupal 7

I am using token module to templatized email and I was using perfectly previously. I was able to access site:url, user.uid and current-date:raw while sending mail. But suddenly I am not remembering ...
0
votes
1answer
34 views

Rewriting Views results with tokens on multi field

I need to write a paragraph laced with field values from a result from a view. For example, "Our camera case works with model ABC, 123, and XYZ", where ABC, 123, and XYZ are 3 out of multiple results ...
0
votes
0answers
22 views

Access to node files with SMB share or similar

I'm thinking to use drupal as an ECM, but I miss an essential function (from my point of view): to be able to access to the files via samba share, webdav or similar. My idea is the following: Imagine ...
0
votes
0answers
44 views

Can't get First and Last names pre-filled in a Webform

In /admin/config/people/accounts/fields I created First and Last name fields (field_name_first and field_name_last). Installed Real Name module and on /admin/config/people/realname page, for Realname ...
0
votes
3answers
68 views

create a downloadable file after submit webform

Hello Im not sure if this can be done, but Im trying to make a simple app where you create your own lexical analyzer. So in the webform I ask the necessary information, then I need the following: ...
0
votes
1answer
33 views

Problems linking Image to product display node

I'm trying to implement something like what's referenced here Image redirection problem, but I closer to the mark with this method http://www.drupalcommerce.org/node/556. The problem I'm having is ...
0
votes
0answers
22 views

Issue with menu and user token

I'm having problems with some links that have a user token in it. For ex. I have a link like this: user/[current-user:uid]/edit. But when I check this in the browser as a user I just see Edit ...
0
votes
0answers
26 views

Generate user token for custom API

We are building an open-data portal. We have a custom API made with Python and Flask. The user management is made in Drupal 7. We only want to allow API access to certain users. Currently we are ...
0
votes
0answers
17 views

Drupal 7 same token showing twice in token available admin page

I have a simple question to understand if I made a mistake (during my migration from Drupal 6 or so ...). In admin page, when I can use token in fields, in "Browse available tokens." popup I'm seeing ...
0
votes
1answer
47 views

How do I overwrite Facet API tokens for active items?

I'm using "Facet API" and "Search facets" modules on Drupal 7. I'm trying to change the values of the active items' tokens provided in the search blocks (especially the [facetapi_active:facet-label] ...
1
vote
0answers
19 views

How do I include the result of a token as a parameter for another (custom) token?

I'm writing a module with custom tokens. I need a token that generates a hash based on three other tokens: user id, poll id and (poll) option id. The idea is that a user gets links to vote by email ...
0
votes
0answers
19 views

Token in menu does not work anymore after Entity API

I'm using module Menu Token version 7.x-1.0-beta5 and have updated the module Entity API from version 7.14 to 7.15 (and at the same time the modules "Custom Search", "Email field" and ...
0
votes
1answer
31 views

Node titles disappear sometimes when using tokens with Autonodetitles

There are instances where the node titles disappear for updated nodes. The site uses organic groups with APC for caching data. The drupal version installed is 7.18 however most modules including ...
0
votes
0answers
22 views

Problem with custom token

Below is the code I am trying to get implemented for a custom token module. The purpose of the token is to work in conjunction with the [field_display_name] token for the comment author's name for a ...
0
votes
1answer
22 views

Custom Token + foreach not functionnal

I want create a custom token to retrieve all parents with a specific type of a menu item. I have created a custom module with that : function mytoken_token_info() { ...
0
votes
0answers
19 views

Getting token values from user accounts

When a customer creates a account on my website, he fill out a First Name field on his profile. The machine name for this is "field_fornavn". Can I get this field value as a token when the users ...
0
votes
1answer
30 views

Printing the last 6 characters of a field into a confirmation email

I have a booking system set up using Rooms. The customer enters their phone number on checkout, which is a 5 number area code, followed by 6 other numbers. E.g. 01234 567 890. The rooms at the ...
0
votes
1answer
54 views

Do tokens work with Rules “Set a data value”?

I have a simple Rule created in which the action is that a particular entity is created (a node) and then another action is called to "Set a data value" of one of this node's field (a standard text ...
1
vote
0answers
107 views

Show field label when using tokens in “Global Custom Text” field in Views?

How can I show the field label when using tokens in Global field in Views. To reproduce: In a view: 1) Add field: title-field and enable to "Create a label" with value "My title". 2) Add field: ...
0
votes
0answers
36 views

Calculate a date for “Scheduled evaluation date”

I'm trying to create a rule to send a email on a customer birthday. For that, I created a contact type with a date field which has day/month/birth_year. (I want to have the birth year for future ...
1
vote
0answers
48 views

What token should I use while sending email when I am programmatically adding the content?

When I fill the form. I get this email A new Event "Event name" has been created. To approve this Event please go to http://websitename.com/content/content-name and click ‘publish’. I have ...
0
votes
0answers
22 views

In Drupal Commerce, how do I include Customer Profile in generated email?

We have a customer profile called Event Registrant (that we created as custom). The Event Registrant customer profile is attached to line item called registration, allowing users to register multiple ...
0
votes
2answers
32 views

Block on user profile only

I have blocks for several profile types that links to users photos videos etc. (think myspace) With arguments it works nice, block is visible only on page created by userXY and leads to other content ...
0
votes
0answers
6 views

Cant change token for user paths

As the title says when user clicks "My account" it leads to default www.example.com/user instead of anything else i try (for example: www.example.com/userrole/username). I am using profile2, token ...
0
votes
1answer
45 views

How to set a new password using a module?

I'm sending out mails to existing users telling them their username and password with tokens. Because there is no way to access the user's password (fortunately!), I'm simply setting a new password. ...
0
votes
2answers
56 views

Links converting to plain text

I've got a function that should generate a link as such <a href="http://linklocation">Set Password</a>, which does happen, but it is generating as plain text. My guess is that this is due ...