I am working on a more complex solution for promoting content on my drupal website.
I need to promote stories in 3 ways:
Promote on frontpage (view frontpage)
Promote on section homepage (taxonomy term)
Promote on topic homepage (child taxonomy term to section)
There might be only 1 story promoted on frontpage and individual section and topic pages at the same time. And 1 story might be promoted on frontpage and assigned section/topic homepages at the same time.
I managed to set up frontpage promoting (w/ rules integration and trimming to 1 flag only). However, I cannot find solution for promoting on section and topic pages, as there are more sections and topics.
Is this something I can do with flags&rules or do I have to use hook_flag and write my own module for this?
Any suggestion much appreciated, thanks.
Comments
Comment #1
mooffie commentedTagging.
Comment #2
mooffie commentedYes, you'll have to write custom code. In your hook_flag($action=='flag') unflag all the other nodes that are tagged by a sibling term.
Alternatively, check with the NodeQueue guys: perhaps they already have this functionality. They have "smart queues".
On the long run, perhaps the #475366: Flag queue feature could help (not sure: I haven't looked into it yet).
Comment #3
jauzah commentedThanks, I have solved this by custom module and hook_flag quite easily. This is probably something out of the scope of this module's aim.