Do you guys know any module which makes drupal to allow only one node with the option 'Sticky at top of lists'? My client needs to have only one sticky node, if there is already another node with sticky option selected when adding new node, previous nodes 'sticky' option should become disabled.
If there's no such module or easy way, I've got to make one which takes longer.
Thanks in advanced :)
If it were me, I think I'd try to use Rules and VBO. I haven't tried it myself, but I'm pretty sure the functionality is there without a custom module.
Rules allows you to create a condition (Save a node, or maybe even Save a node as sticky) and then fire an action, which using Views Bulk Operations (VBO) can find all other sticky nodes and turn them non-sticky.
Hope that helps,
Joel
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Pooya Sent: Thursday, May 05, 2011 6:29 AM To: support@drupal.org Subject: [support] Use only one 'Sticky at top of lists'
Do you guys know any module which makes drupal to allow only one node with the option 'Sticky at top of lists'? My client needs to have only one sticky node, if there is already another node with sticky option selected when adding new node, previous nodes 'sticky' option should become disabled.
If there's no such module or easy way, I've got to make one which takes longer.
Thanks in advanced :)
thank you :) I used rules before to redirect after login I guess, I'll check it out
On Thu, May 5, 2011 at 6:03 PM, Joel Willers joel.willers@sigler.comwrote:
If it were me, I think I'd try to use Rules and VBO. I haven't tried it myself, but I'm pretty sure the functionality is there without a custom module.
Rules allows you to create a condition (Save a node, or maybe even Save a node as sticky) and then fire an action, which using Views Bulk Operations (VBO) can find all other sticky nodes and turn them non-sticky.
Hope that helps,
Joel
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Pooya Sent: Thursday, May 05, 2011 6:29 AM To: support@drupal.org Subject: [support] Use only one 'Sticky at top of lists'
Do you guys know any module which makes drupal to allow only one node with the option 'Sticky at top of lists'? My client needs to have only one sticky node, if there is already another node with sticky option selected when adding new node, previous nodes 'sticky' option should become disabled.
If there's no such module or easy way, I've got to make one which takes longer.
Thanks in advanced :)
-- Pooya Sanooei Twitter - Facebook - Website
-- [ Drupal support list | http://lists.drupal.org/ ]
I would actually skip that flag completely. It's essentially vestigial and useless on a modern Drupal site.
Instead, make a nodequeue with one slot in it. To promote something, add it to the queue and it knocks something else out. No Rules necessary.
You can then have a view that orders first by presence in the nodequeue then date. Or has two displays, one attached to the other, one of which filters to presence in the nodequeue and the other filters to NOT in that node queue.
Nodequeue and Flag modules are your friend. :-)
--Larry Garfield
On 5/5/11 6:28 AM, Pooya wrote:
Do you guys know any module which makes drupal to allow only one node with the option 'Sticky at top of lists'? My client needs to have only one sticky node, if there is already another node with sticky option selected when adding new node, previous nodes 'sticky' option should become disabled.
If there's no such module or easy way, I've got to make one which takes longer.
Thanks in advanced :)
-- Pooya Sanooei Twitter http://twitter.com/sourcesoft - Facebook http://facebook.com/pooya.sanooei - Website http://www.javabgoo.com
Larry, that seems a lot of extra weight to do what the "sticky" flag does. And if you ever want more than one sticky node, you have to go through all that extra NQ admin stuff. I sure hope that flag never goes away. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________
From: Larry Garfield I would actually skip that flag completely. It's essentially vestigial and useless on a modern Drupal site.
Instead, make a nodequeue with one slot in it. To promote something, add it to the queue and it knocks something else out. No Rules necessary.
I don't have any experience with flag or NQ. I guess I'll use a view or rules :) easier for me
On Fri, May 6, 2011 at 3:20 AM, Ms. Nancy Wichmann nan_wich@bellsouth.netwrote:
Larry, that seems a lot of extra weight to do what the "sticky" flag does. And if you ever want more than one sticky node, you have to go through all that extra NQ admin stuff. I sure hope that flag never goes away.
*Nancy*
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
*From:* Larry Garfield
I would actually skip that flag completely. It's essentially vestigial and useless on a modern Drupal site.
Instead, make a nodequeue with one slot in it. To promote something, add it to the queue and it knocks something else out. No Rules necessary.
-- [ Drupal support list | http://lists.drupal.org/ ]
On Thu, May 5, 2011 at 7:28 AM, Pooya pooya.source@gmail.com wrote:
Do you guys know any module which makes drupal to allow only one node with the option 'Sticky at top of lists'? My client needs to have only one sticky node, if there is already another node with sticky option selected when adding new node, previous nodes 'sticky' option should become disabled. If there's no such module or easy way, I've got to make one which takes longer.
I would probably make a content type, "sticky" or some such, and then use a view to display just the most recent node.