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

mooffie’s picture

Issue tags: +flag queue

Tagging.

mooffie’s picture

Status: Active » Fixed

or do I have to use hook_flag and write my own module for this?

Yes, 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).

jauzah’s picture

Thanks, 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.

Status: Fixed » Closed (fixed)
Issue tags: -flag queue

Automatically closed -- issue fixed for 2 weeks with no activity.