Howdy!
I've created two custom content types: *Journal* and *Article* - both have Volume and Issue fields.
What I wanted to do was to be able to generate a view wherein each Article with the same Volume and Issue field values would be appear as a list of links beneath the appropriate Journal, effectively creating a "Table of Contents."
Why did I not just use the Book module? Well, because I wanted to automate the whole process, so that Articles would not need to be manually parented to a Journal. And frankly because, well - it just didn't occur to me at the time.
What's the best way of doing this? I've been looking at Node family and other Node relationship type modules but I don't think they're the right solution. Is it just a case of writing an argument in the view wherein it says (pardon me, I don't know PHP):
* Show this view only in Journal nodes
* Find out the Volume and Issue field values of the Journal node
* Display only Article nodes whose Volume and Issue field values are both equal to the Journal's.
Am I on the right track?
Cheers and thanks!
Comments
Comment #1
gcassie commentedSounds like you are on the right track. You'll need a little php in the the argument handling code of your article view. Load up the parent journal, interrogate it for the volume and issue, and return those as your arguments. If you're only showing this in a block on journal pages, it would look something like:
You might also want to look at the pathauto, custom_breadcrumbs, and menu trails modules to help with automated navigation generation.
Comment #2
karens commentedClosing old issues. None of us is using the D5 version any more, so hard to provide any support. Sorry.