The [node:book] token should be linked to a 'menu link' token type so you should be able to use chained tokens like [node:book:parent:title]. We may have to add a menu link token of ':root' so you could use [node:book:root:title]. Dave Reid dave@davereid.net On Sun, Sep 19, 2010 at 7:25 AM, E.J. Zufelt <lists@zufelt.ca> wrote:
Good morning,
Thanks for the response.
I am using Drupal 7. I took a look in token.tokens.inc and see that it only defines one node token on behalf of the Book module [node:book]. Which seemingly returns the same value as the node:title token. I'll play around with this some more.
Thanks again,
Everett Zufelt http://zufelt.ca
Follow me on Twitter http://twitter.com/ezufelt
View my LinkedIn Profile http://www.linkedin.com/in/ezufelt
On 2010-09-19, at 8:06 AM, Greg Knaddison wrote:
Hello Everett,
Are you using Drupal 6 or 7?
I think for Drupal 6 the token you want is just called [book]. You can find more information on writing tokens for Drupal 6 in a file called API.txt which is inside the token.module folder.
Regards, Greg
-- Greg Knaddison | 720-310-5623 | http://growingventuresolutions.com Mastering Drupal | http://www.masteringdrupal.com
On Sun, Sep 19, 2010 at 3:48 AM, E.J. Zufelt <lists@zufelt.ca> wrote:
Good morning,
I have pathauto setup for book as:
book/[node:book]
Ideally I'd like to be able to set :
books/[book:title]/[node:book]
Where book:title is the title of the book's root node, and node:book is the
title of the current book page (node). I checked and there don't appear to
be modules to provide me with additional tokens for the book module, and I
didn't find what I was looking for on the pathauto configuration page.
If this is a case where I am missing a simple feature or module I'd love to
know. I'd also be willing to write a book token module with more tokens if
someone would point me to some type of resource to get started.
Thanks,
Everett Zufelt
Follow me on Twitter
View my LinkedIn Profile