Closed (duplicate)
Project:
Pathauto
Version:
7.x-1.0-beta1
Component:
Tokens
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2011 at 02:24 UTC
Updated:
7 Apr 2011 at 22:51 UTC
I would like my pages URLs to have the same structure as my menu, so if page Baz is located under menu Foo/Bar/Baz, the url to it should be /foo/bar/baz. With D6 and I would simply use the token [menupath-raw], but that is no longer available.
The closest I have come is [node:menu-link:parent]/[node:menu-link], but that only seems to go two levels back, e.g. the url becomes /bar/baz. It works fine for /foo/bar and /foo though. Is this a bug?
The alternative is [node:menu-link:parent:url:alias]/[node:menu-link], but since I am using the Menu Firstchild module, it does not work with pages nested under “firstchild” menu items.
Any input/help will be much appreciated, regards, Egil.
Comments
Comment #1
hcabalic commentedI have a similar issue:
I have my default URL Alias for content paths set to:
[node:menu-link:parent:title]/[node:title]
So if I have parent node Lorem Ipsum with subpages Subpage 1 and Subpage 2, the URLs are as follows:
lorem-ipsum/
lorem-ipsum/subpage-1
lorem-ipsum/subpage-2
If I move Subpage 1 under a different parent in the menu, About Us, the URL Alias does not update.
Should be:
about-us/subpage-1
Not:
lorem-ipsum/subpage-1
Comment #2
dartdev commented+100 we need some raw
Comment #3
akalata commented#1016042: Is [node:menu-link:path] the successor of [menupath-raw] in D7?
relies on #860082: BIKESHED: Token for a term or menu item's entire tree/hierarchy