Closed (fixed)
Project:
Menu Node Edit
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2009 at 11:24 UTC
Updated:
11 Nov 2009 at 18:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
agentrickardThis is the place. We actually need this feature, too. You would have to lookup the following:
{menu_links}.link_path == {url_alias}.src
Grab {url_alias}.dest and use that as the token value. We also need to account for a NULL return.
Comment #2
agentrickardHere's a patch. If no match is found, we return the string 'content' as the path, since we can't really have an empty token.
Comment #3
agentrickardBetter patch.
Comment #4
agentrickardFixes stupid logic error.
Comment #5
roboneale commentedThat's working for me. Thanks.
Comment #6
agentrickardIdeally, I think that 'content' string should be configurable.
Comment #7
roboneale commentedIf I use the -raw token within a pathauto replacement pattern the forward slashes for that token don't appear in the resulting URL. The non-raw token does what I want but I'm a little cautious to use it as pathauto gives me the following warning.
In this case I couldn't comfortably say I "really know what I'm doing".
Comment #8
agentrickardThe non -raw should be fine. I really don't understand that part of PathAuto/Token, and this it is a horrible UI failure. The -raw token is not well-documented, but here, you should be fine with the plain-text version.
Comment #9
agentrickardHah. -raw is worthless. Pathauto strips the / from anything labeled '-raw'. It has to be -path.
This is a WORTHLESS UNDOCUMENTED "FEATURE" of PathAuto. To wit:
Comment #10
agentrickardCommitted to HEAD.