Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using views tab menu with arguments. I have 2 views, one set to projects/%/info and the other to projects/%/public. How can I get the nid to be replaced to the alias, when I have pathauto converting project/% to project/[node:title].
Comments
Comment #1
Dave ReidYour views should be living at node/%/info and node/%/public.
Comment #2
shaisamuel CreditAttribution: shaisamuel commentedDave, thanks for your reply.
What do you mean by
?
I have my views Paths set to /projects/%/info & /projects/%/public and when I use the nid it works. I would like the nid to be replaced by an alias which is the title.
When I run the View Alias Paths in the admin/config/search/path, it report 2 views, but when I look at patterns the VIEWS AVAILABLE FOR ALIASING is empty.
It look to me as if I am missing something.
Thanks again for your kind help.
Comment #3
Dave ReidI can't support the View Alias Paths module since that's a different module. Your Page path for your two views should be node/%/info and node/%/public and not project/%/info and project/%/public.
Comment #4
shaisamuel CreditAttribution: shaisamuel commentedThanks!
Now the patterns the VIEWS AVAILABLE FOR ALIASING is empty, but those 2 views are part of node tabs and the pathauto/info and pathauto/public works.
So which views make it to the VIEWS AVAILABLE FOR ALIASING?
Comment #6
darksnow CreditAttribution: darksnow commentedSorry to reopen this old post but there's no answer up there.
I have a content type using Pathauto which is set to paper/[title] which is working great.
I need to add /paper/[title]/details and can't get this to work. I've had a look through the issue list and tried to find some sort of documentation but to no avail.
The view in question has a path of paper/%/details but I've also tried node/%/details. While direct access to, for example /node/19/details works (and is in fact added to the tabs menu) I have been unable to get /paper/[title]/details to work no matter what I change the views path to be.
I've upped the max depth to three but no change.
Any clues how to use this module? It seems to be the sort of solution where it should just work, which is great when it does.
If you need more details of my views set up or anything else, let me know.
Cheers.
Martin...
Comment #7
StoraH CreditAttribution: StoraH commentedHi darksnow,
I had the same problem but it turned out just to clear cache to solve it.
So, set the max depth to one and use the node/%/details as your path for your view.
Then go to admin/config/development/performance and clear cache and it should work.
Hope it helps!
Comment #8
darksnow CreditAttribution: darksnow commentedThanks StoraH. It was indeed the cache striking again, but not as obviously as I had though.
Turns out clearing ALL cache doesn't in fact clear all the caches. I had to explicitly clear the menu cache to rebuild the menus and add my new tabs in.
Thanks for your time.