[menupath-raw] empty if creating node with top level menu link
| Project: | Token |
| Version: | 6.x-1.12 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi,
I'm working with Pathauto 6.x-1.1 on Drupal 6.12. The Pathauto rule for my "Page" content type is "[menupath-raw]", one of the menus that I put Pages in is organized as follows:
|
+- Topics (site.com/topics)
+- Archives (site.com/archives)
+- ...When trying to create a new node (let's say "Team") and place its menu link at the menu's toplevel, [menupath-raw] is empty and thus no alias being created. If the menu link is not being placed at the toplevel (e.g. under "Topics") everything is fine and the alias "topics/team" is being created.
I expected that [menupath-raw] would contain the new node's link name and thus the alias "team" would be created. A workaround would be using "[menupath-raw]/[menu-link-title-raw]" as rule, but that would make links at lower menu levels look like "topics/team/team".
Best regards,
Lars

#1
subscribing... (see also: http://drupal.org/node/519834)
#2
Actually... I just re-tested this and it the bug did not occur for me. The aliases of my top-menu-items are their menu-link-titles (from the node-edit form).
In case it helps you, this is what I do for my top-menu-items:
- when I create a node that will be a top-item, I use its Menu settings (in the node-edit form) to make it the menu item under Primary Links with the menu-link-text I want to appear as the top-menu-item for that menu. Let's say for example I'm talking about the "About" menu (b/c it's easier to talk about something with a name), and let's say this page is titled Our Mission
- then, I go to Admin > Site building > Menus >Primary links, and I create a new menu item. This menu item will be the first item within the About menu. So, I enter the path (using node/1 or whatever) of the node I just created, and for the menu-link-text I enter Our Mission, and I put this item within the "About" menu, with the lowest weight so it's at the top.
You probably already know how to do this, but I'm being as detailed as possible anyway, just in case you don't know how or simply aren't doing this, and just in case it happens to help you solve your problem.
Good luck - and if you post more details about what you have configured/how I'll try to help if I can.
#3
alisonjo2786, that's actually what I did as a workaround.