Greetings,
I have installed Feeds (7.x-2.0-alpha4), PathAuto (7.x-1.1), Tokens (7.x-1.1) and Entity tokens (7.x-1.0-rc2), added a feed and imported feed items into an appropriate node.
When the feed items are created, the URL Alias is not correct. What I want is the alias to be /news/feed node/feed item node. What I am getting is news/feed item node.
The Path Alias for the feed items in the Url Aliases -> Patterns page is news/[node:feed-source]/[node:title]
Now the funny bit. If I go into a Feed Item -> Edit, the URL Path Settings -> Generate automatic URL alias checkbox is unchecked. If I check it, and save, the Path is changes to the desired path.
Also, if I go to the URL Aliases -> List page, delete the alias, go to Bulk Update, click update, the new alias is also what I want.
I have done some searching (soul, Drupal and google) and not found an answer. I do not see any setting to stop or over-ride the generation of aliases anywhere.
Can anyone help me with this? Is it a bug or have I missed the blindingly obvious. In my experience, things become blindingly obvious five seconds after posting .... but please help me out.
Comments
Did you find a solution for this?
Hi Don,
I am having the same sort of problem, just wondering if you had found how to fix it, or if it actual is a bug.
Thanks
Try using Rules
I had the same issue.
Check out this thread http://drupal.org/node/1161202
I created a simple rule to delete and create url aliases after the content was saved, for the feed content type.
Used a pattern [node:feed-source:title]/[node:title] which gave me the results I was looking for.
Thanks
another workaround
The Rules workaround in the comment above is a good one. I took a longer (not as good) path.
When I pulled in nodes from an XML feed (XPath Parser), if I passed in a URL in the feed I could get the alias to be set to that one, but that didn't do the Pathauto processing/cleanup that I wanted - and the "Generate automatic URL aliases" wasn't ever checked - until I edited the node manually and then resaved it.
Also, when I tried to update the aliases with Views Bulk Operations (the Panopoly distro doesn't have the "Update URL Aliases" as an admin/content option), the URL aliases wouldn't be created because the checkbox wasn't checked in the already-created nodes.
The only way I could get it to work was to manually set pathauto in the pathauto DB table to 1 (with a SQL query) for any node IDs that had just been created. Then running the bulk URL alias update would work.