How to create sticky news items in Plone 4

How to create sticky news? On our home page there is a collection of news (news materials placed in a folder) with selected criteria (published, tags, published date, reverse order). News on the main page is updated every day; however, sometimes there are 1 or 2 news items that should remain at the top of the news list (collection) for a long period of time. How can i do this?

I searched for a Plone user site and a Plone site; tried several collection configurations; looked at add-ons such as ListingPages and Plumi, but it seems that I don’t have the function I'm looking for, and searched the Internet for “sticky content”, “sticky news item” and did not find a solution. If anyone knows how to do this, and I would not want to share them, I really appreciate it! Thanks!

+4
source share
7 answers

You can do it as follows:

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

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

Alternatively, you can set up a news workflow and add a new “featured” state (the rest of the process is about the same).

+5
source

collect.flag gives you the opportunity to mark an element as a special object, which, in my opinion, makes it semantically more understandable than using a tag / keyword or workflow to differentiate.

Display and sorting can be done through collections (as Giaccomo wrote), I recommend ContentWellPortlets to place portlets where you need them.

+2
source

There is no release yet, but I just stumbled upon davisagli "collect.sticky": https://github.com/davisagli/collective.sticky/

+2
source

I would advise you to take a look at this old blog post: Beyond the News: The Need for Industry Standards at Plone .

We are working on collective.nitf , a new type of Dexterity-based content, to solve such problems. It is fairly ready for production on sites using Plone 4.1, but now we are in the middle of a little refactoring.

I will release it next week as soon as we complete the transition of some code to another package and change the name of the field.

+1
source

afaik there is no way to create what you call sticky stock market news.

You can try soring by the effective date (newest from above) and set the effecitve date manually for your sticky news. set the time <= now and> than the date of creation of the latest information resource, which should not be sticky.

Unfortunately, this means touching your sticky notes every time you add new news. or set the effective date of your new newsstands so that they are before your sticky news and after the latest non-sticky news.

0
source

This is an obsolete method, but hey It Still Works ™: you can use Products.CMFPublicator to achieve what you want. Take a look at it and answer here if you have any doubts.

Another solution for seniors will use Products.CMFContentPanels . You can even try a combination of both!

0
source

Another approach to sticky news: http://pypi.python.org/pypi/collective.stickyitem

0
source

Source: https://habr.com/ru/post/1390070/


All Articles