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

learn more… | top users | synonyms (1)

0
votes
1answer
9 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
votes
0answers
12 views

How to change the token replacement patterns

I would like to change the Token replacement patterns. I am using Commerce Auto SKU module, and when i have 10" (inches) entered in a title (source) field, it replaces it as 10quot in the token. How ...
1
vote
2answers
38 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 ...
-3
votes
1answer
25 views

ask me please 1 to be double, string given in [closed]

Warning: number_format() expects parameter 1 to be double, string given in /home/fan7truy/public_html/xxx/isisaldo.php on line 154 Error in line 154 this is line 154 <strong>Rp <? echo ...
1
vote
0answers
15 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
18 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
35 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
12 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
30 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
8 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
8 views

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

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
25 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
40 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
8 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
19 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
24 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
20 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
17 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
16 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
34 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
54 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
71 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
32 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
28 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
27 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
9 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
23 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
37 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
21 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
65 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
43 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
35 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
133 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
18 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
58 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
223 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
25 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
84 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
33 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
53 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
113 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
57 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
1answer
42 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
35 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
20 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
70 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
21 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
20 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 ...