Closed ANZ504 closed 2 years ago
Hello,
Try applying the sort('publish|desc')
method on your collection.
What I want to achieve is to use the new status and put a start and end date of a new news.
And so manage to create a component in which to place the new news that are updated in the established arrows
Perhaps I misunderstood you. But by design, only articles with the Published status should be included in the collection. There are other tools for sorting and grouping articles, and this is not an article status. But you can extend the plugin logic as you need.
So the start and stop dates do not have a clear functionality?
The last question :)
It works like this. If an article has a status of Published, it will only be added to the collection if the current date is within the start and stop date of the article's publication.
thx
Currently you can't filter by the newest post. Please add that method.
published() It applies a filter by publishing status and publish the date for the elements of a collection.
Thank you