I'm currently building a site that is going to be a repository for resources.

The resources will be of a set content type. This could be an image, a video, a lesson pack (zip) etc.

Each resource can be assigned to multiple taxonomy terms such as Biology, Chemistry, Maths etc.

Each taxonomy term has it's own colour scheme, set up using a set of blocks that change based on the URL. For instance, if the user is in the Biology section then they get the biology blocks which are green.

Is it possible to move the node dependent on the referring page?

If I visit site/node/1 from site/biology/images the node becomes site/biology/images/node/1 ?
Same for other sections ie. if visited from maths/images it will become site/maths/images/node/1 etc
It would work as well if it just took the first argument, i.e. site/node/1 becomes site/biology/node/1

This would pull the correct stylesheets and blocks for each section so my menus stay visible on the node page.

The way I achieve this coding by hand is to have the records flagged for each section and then run a different SQL statement in each section ie. SELECT * FROM resources WHERE category ="biology" AND contentType ="image"

This is a new thought on how to achieve http://drupal.org/node/238877

Comments

Hitby’s picture

Alternatively, is it possible to create a set of custom pages that load a node into them. I could have sets for each section ie.

biology/images/content
biology/videos/content
maths/images content etc.

Then I could load the node data directly into those pages. This way the user gets the data but they will never visit root/node/nid?

Hitby’s picture

With the help of rizqi this issue has been solved.

Solution at http://drupal.org/node/241267