Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have to develop a monthly online magazine and I am looking for suggestions on the best way to organize the content.

Since it's a monthly publication, I want to organise content under January, for example. January will have multiple articles, advertisements etc all of which are nodes.

When time moves on to February, I want to unpublish January and consequently unpublish all the nodes associated with it.

Does anyone have any ideas on how I might accomplish this?

share|improve this question

2 Answers

to publish or unpublished the content you should use Scheduler (http://drupal.org/project/scheduler) with this module let you to say when is publish the content and when will be unpublished.

To group the content, also you can build a field data (year-mounth) and use views to show a block with all the nodes with the same field-data, it should work like books block.

share|improve this answer

I can offer next thing, you can create a taxonomyvocabulary with months, and to unpublish nodes, you can do next thing:

  1. Query to db to find nodes with taxonomy term inside(for example January)
  2. Load node with node_load
  3. Set the $node->status = 0
  4. and save the node with node_save

This will unpublish all nodes with that month. About associated nodes - can say for sure, how they accosiated with a node? Probably you will need to write your own module.

share|improve this answer
Thanks. By association I just meant that the articles should list under the relevant month. – sisko Feb 27 at 10:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.