i have installed the token module, but don’t know how to use it. i have searched lots of time.and don’t find some tutorials of it. expect someone can make me an example to use it. especially in views module. thank you.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The token module provides a centralized API for using placeholders that are replaced by text.
To start off, I suggest reading the module documentation and see the list of modules that use Token. In essence it takes a token like
[user-name]and replaces it to enjoylife or whatever your username is.You cannot use Token in Views as such. But you can use it in CCK, node body, node title etc. which, in turn, can be used in Views.
One simple example of tokens is the Pathauto module — go to /admin/build/path/pathauto and check any of the ‘Node paths’ suggestions.