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

Dave Reid’s picture

Status: Active » Fixed

Your views should be living at node/%/info and node/%/public.

shaisamuel’s picture

Dave, thanks for your reply.
What do you mean by

living

?

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.

Dave Reid’s picture

I 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.

shaisamuel’s picture

Thanks!

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?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

darksnow’s picture

Category: bug » support
Status: Closed (fixed) » Active

Sorry 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...

StoraH’s picture

Hi 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!

darksnow’s picture

Status: Active » Closed (works as designed)

Thanks 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.