Changing a Plone newsfeed's item's publish date - plone

Is there a way to change a newsfeed item's publish date in Plone? I have a Plone 4.1 instance. We weren't doing it right and had one item with lots of news in it. I broke them up into separate items but they are no longer ordered chronologically.
I know there is a contents tab and it appears you can reorder there by dragging one item around. However it does not stick.
I don't see anyway to do it in the ZMI.

The RSS feed uses the effective (or publishing) date, falling back to the modified date, for the <dc:date/> tag.
Give your content a correct effective date to correct the date in your RSS feed, see Edit -> Dates -> Publishing Date.

Related

WordPress: Change the date of publication

How to change the date of publication of the WordPress post to the date of transfer from "Draft" to "Published", and not the date of creating "Draft"? The fact that the MailPoet plug-in for automatic mailing does not take into account the post, which from the drafts became published. So the newsletter does not see new posts and accordingly does not post weekly.
I don't think this is a functionality built into Wordpress. I think you'd have to manually use the date dialog to change the date, or build a wordpress plugin to do it when you switch from draft to published.
With WordPress 5.x here are the step to change the date of any published article:
Edit the article
Click on Options button at around top right
Click on Article horizontal tab
Under Visibility State, next to Published field, click on the date. Enter any date to your liking.
Click on Update button at around top right
Note: I translated the button name from French to English. So the real names are likely to be different.

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

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!
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).
collective.flag gives you the opportunity to mark an item as a special object, which makes semantically more sense than using a tag/keyword or workflow-state for distinction, I think.
Display and sorting can be done via collections (as Giaccomo also wrote), I recommend ContentWellPortlets to place portlets where you need them.
No release yet but I just came across davisagli's "collective.sticky": https://github.com/davisagli/collective.sticky/
I would suggest you to take a look at this old blog post: Beyond News Items: the need for news industry standards in Plone.
We've been working on collective.nitf, a new Dexterity-based content type to solve this kind of issues. It's pretty ready for production on sites using Plone 4.1 but right now we are in the middle of some minor refactoring.
I will release it next week as soon as we complete the move of some code to another package and change the name of a field.
afaik there is no way to create what you call sticky news in stock plone.
you could try soring by effective-date (newest on top) and set the effecitve date manually for your sticky news.
set a time <= now and > than the creation date of the newest newsitem that should not be sticky.
unfortunately this means touching your sticky notes each time you add a new news item.
or set the effective-date of your new newsitems so its before your sticky news and after the newest non-sticky news.
It's an ashamingly outdated method but hey It Still Works™: you could use Products.CMFPublicator to achieve what you want. Have a look at it and reply here if you have any doubts.
Another old-aged solution would be using Products.CMFContentPanels. You can even try a combination of both!
Another approach to sticky news item: http://pypi.python.org/pypi/collective.stickyitem

How to show only oldest and newest node in Drupal views?

I want to create a view that only shows the oldest and newest node of a certain content type what is the easiest way to do this? Thanks
This may be possible with hook_views_query_alter. However, for a code-less approach I would recommend creating two views. One view to grab the oldest and another view to grab the newest node for your content type. You can then use Panels to place these views right next to each other giving the illusion they are one.
This is the easiest method to do this with Views UI.
1) Create a views display (page, block etc) with filters of Content type and Published, limit it to display only One node and Sort by date published ascending. This will show the oldest node.
2) In the same views add an Attachment display. Use the same filters and limitations and change only (by overriding this display) the sorting to descending. This way you will get the latest node.

Display Months in dropdown for filtering in drupal

I want to create a view over a content type. Over this page I want a select list of Months to filter the content by month.
Is there any module or how can I achieve this by view?
The date module can do this however there is one small caveat. I do not believe this will work if you are using fields such as node created date or node updated date. This approach will only work for date fields that are added to the content type.
If you need to filter by node created or node updated date then you can either build a custom filter for views (which is not for the faint of heart) or you can possibly try this module http://drupal.org/project/views_daterange. I have never used the module but it sounds like it might do what you need (but is only released for Drupal 6).

How to provide a button which will change my current page content to an previous page in drupal

I'm making a site wherein I want to show the current course that I'm gonna teach to my pupils.In this page there should also be links provided to my previous courses. Now when I'm done with this course I want to transfer it to a previous course or rather automatically create a link for it and get the new course content in it's place. I just think doing manually is kind of stupid. Rather I want to have a form where i can create my new course then click on make current course as previous and this course as new whenever i wish.How can I do this.Is this even possible
Pretty open question ... One way would be to work with views when showing a node.
In the view you should use a custom php field, which collects the record (nid) within the course-node table. And then create a link using the drupal path_alias function or by using node/nid ...
You could use panels-module as well. Where you have a view with the latest course, and under the latest course you have a view of a link to the latest course -1 . (I think you can set an offset in views to get the previous course) The view should accept an argument, namely the nid of the currently loaded node.
If you use this method, do check if your panels is giving the arguments to the views module.
Another way would be to use node reference as to what is the previous course (but you don't want it to be manual). The advantage of node_reference is that you don't need to enter your courses in a certain order. If you make it automatically, then the order in which you fill in the courses should be correct.
Easy man. Just create a content type called "course" and using CCK, add all the fields to capture information you want about the course.
Now you have the content. Using Views, create a simple view page displaying course content type and sort it on descending order, set it to display one item at a time and add a mini pager. That way the new course will be the first one displayed and the other ones will be behind it. You might need to customize the pager a bit ^^

Resources