How do I replicate the behavior of the bookpath-raw token from the D6 version of pathauto?

I've tried numerous combinations of the new tokens but need it doesn't work for all book pages, since some are more deeply nested than others.

I need:

/top-level-book-page/bookpage-parent/optionally-another parent/bookpage-title

Thanks in advance.

Comments

binarylime’s picture

subscribing

dave reid’s picture

It will likely be a soon-to-be-completed token called [node:book:parents:pathauto] together with [node:title] at the end

binarylime’s picture

Is this now ready to go? I can't see a token called [node:book:parents:pathauto]

I've tried:

[node:book:parent]/[node:title]
[node:book:parent:root]/[node:title]

but neither of these give the desired result. As mtndan previously said I too am looking for:

/top-level-book-page/bookpage-parent/optionally-another parent/bookpage-title to replicate what bookpath-raw did in D6.

Thanks

dave reid’s picture

Status: Active » Closed (duplicate)

This will be solved with #1266928: Add [term:parents] and [menu-link:parents] array tokens and #1046972: Provide an [array:join-path] token. Once those two issues are fixed you will be able to use [node:book:parents:join-path]/[node:title].