Copied from main forum, may get more information here. I'm also willing to pay for help with this, it's important that it works correctly and I'm spending too much time trying to figure it out (20+hours)
Hi,
I have a site with multiple sections based on taxonomy terms. ie. Biology, Chemistry, Maths etc.
Is it possible to have a different node page for each one so that, for example, when I click on a link in the biology section, it is directed to the biology/node page?
My problem stems from resources (nodes) being available in more than one section. At the moment I have views setup with urls such as $arg/images where the $arg is the taxonomy term such as biology.
This works perfectly for displaying the list of nodes, please see http://www.whatdandidnext.co.uk/toolkit/biology/images .
When you click on a node title in that list the url is no longer at biology/ it just returns to /node/nid so the styles and menus don't remain. I need it to link through to a node page that keeps the biology style?
I can't use pathauto to assign a url at biology/ for the node because it could also appear in the chemistry section.
Comments
Ah, the wonders of multiple-inheritence
Someone else who knows more may correct me, but I just don't believe that Drupal is meant to function this way.
What have you tried already? Perhaps giving a brief overview here would help others
i help daniel
hi ryan,
i help daniel make this thing work. I use custom_url_rewrite function to do this (http://api.drupal.org/api/function/custom_url_rewrite/5)
You can see the result on daniel website :
http://www.whatdandidnext.co.uk/toolkit/biology/images
http://www.whatdandidnext.co.uk/toolkit/mathematics/images
http://www.whatdandidnext.co.uk/toolkit/chemistry/images
http://www.whatdandidnext.co.uk/toolkit/physics/images
You can contact me for more information
Skype, Yahoo, Gtalk, AIM : xectra
Thanks
Rizqi
Surabaya, Indonesia
Yes, sorted.
Rizqi wrote some custom php code that went into the settings.php file which has fixed this problem. I will post it here but it will need some slight modification for use in your own projects.
Also, I can recommend Rizqi as a great developer to work with. Very reasonably priced and stayed up sorting out the problem with myself until 2am! He would be my first port of call should I need work doing in the future.