Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create sticky news item(s) in Plone 4

Tags:

plone

How can I create sticky news items? Our homepage features a news collection (news items housed in folder) with certain criteria selected (published, tags, published date; reverse order). The homepage news gets updated just about everyday; however on occasion there are 1 or 2 news items that need to stay at the top of the news list (collection) for an extended period of time. How can I do this?

I searched the Plone User Manual and Plone site; tried several collection configurations; looked at addons like ListingPages and Plumi but neither appear to have the feature I'm looking for, and have searched the web for "sticky content" "sticky news item" and have not found a solution. If anyone knows how to do this and wouldn't mind sharing, I really appreciate it! Thank you!

like image 948
Christina Avatar asked Dec 27 '22 08:12

Christina


1 Answers

You could do it like this:

  • add a second collection in hp for featured news
  • add a news item with a tag "featured"
  • copy all criteria from the first collection to the new one and add a criterion on tag and select as tag "featured"

Then when you want a news item to be removed from the list, just remove the "featured" tag from it.

Alternatively you could customize your news item workflow and add a new state "featured" (the rest of the process is pretty the same).

like image 152
Giacomo Spettoli Avatar answered Jan 31 '23 01:01

Giacomo Spettoli