Drupal's Token Rules

104 7

    Installing Token in Drupal Sites

    • Download Token module from Drupal website, in Resources. Go to sites/all/modules and unzip the module files under this directory. Log into your Drupal site backend with credentials. Click "Administer," "Site building" and "modules" to view a list of installed modules. Enable the Token module by ticking it. Click "Save configuration."

    Token List in Drupal 7

    • There are the following tokens available in Drupal 7: Comments, Current date, Current Page, Files and Menu links. Comments tokens are tokens used for comments posted on the site. This token category includes Author, Created date, Email and Last login. Current date category includes these tokens relevant with the current date and time. Current page tokens are related to the current page request. Files tokens are connected to uploaded files while Menu links tokens are used for menu links.

    Custom Tokens

    • Custom Token module allows you to create custom tokens via PHP code. Custom tokens will assess and execute PHP snippets in order to provide the replacements for the token you create. PHP snippets are a piece of PHP code which you can copy and paste into your Drupal pages, blocks and themes. It can provide you with additional functions or alter the appearance of your site.

    Tokenize Request Parameters

    • The Tokenize Request Parameters module can change parameters passed in the URL of a Drupal node into tokens. It can also convert parameters from posts to Drupal nodes. This module is very specialized and it suits the following scenario: you have a script that needs to send values to your Drupal content pages; you need to place the passed value within their authorized content but without PHP editing authority.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.