Closed (duplicate)
Project:
Pathauto
Version:
7.x-1.0-beta1
Component:
Tokens
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 May 2011 at 14:22 UTC
Updated:
6 Sep 2011 at 16:03 UTC
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
Comment #1
binarylime commentedsubscribing
Comment #2
dave reidIt will likely be a soon-to-be-completed token called [node:book:parents:pathauto] together with [node:title] at the end
Comment #3
binarylime commentedIs 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
Comment #4
dave reidThis 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].