By craigperks on
Hi all.
I have a wierd issue and I could do with some help.
I have a node node/123 with a path of animals/dogs/poodles. On each page within this node I have several CCK's:
1. Grooming
2. Specialist foods
3. Heath issues
I've created a page view to display the content of the 'grooming' CCK only and I want to be able to access this from the URL 'animals/dogs/poodles/grooming'. Drupal is throwing a bit of a wobbly because obviously that is an invalid path alias as far as it's concerned and I'm unable to use the contextual nid filter as 'animals/dogs/poodles/grooming' returns no node ID.
Does anyone have any idea how I can get round this?
Comments
Use Views & Page Path should be node/%/grooming
Checkout views module & Path auto module
http://drupal.org/project/views
You have to set your views path to node/%/grooming where % is your contextual NID.
Use Path auto module to convert paths from node/%/grooming to animal/dogs/grooming based of node PATH ALIAS.
Cheers,
Anil Sagar,
Lead Drupal Developer,
Azri Soulutions,
http://azrisolutions.com/
Hi Anil, Thanks for the
Hi Anil,
Thanks for the response - So I understand the first bit and that works fine. I now have a view that when I navigate to node/%/grooming I'm getting the data I want.
Pathauto is installed and currently configured to replace node/abc with animals/dogs/dog-breed already. How do I set it up to create additional paths automatically for each one?
So for example:
node/123 will have generic path of animals/dogs/poodle (this will display all content related to poodles)
based on the veiw I also need the following paths:
animals/dogs/poodle/grooming
animals/dogs/poodle/specialist-foods
animals/dogs/poodle/health-issues