More in this section

Forums / General Discussions / How to set the Blog Posts date in Sitefinity 4.x

How to set the Blog Posts date in Sitefinity 4.x

6 posts, 0 answered
  1. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    08 Sep 2011
    Link to this post
    Hi Guys,

    I am currently moving content over from our previous CMS to Sitefinity 4.x. As I move the articles over, I do not see an option where I can set the published date. I have looked under the Actions menu in the list of All Blogs. I have also looked under Manage Posts and I have clicked to Edit a post but found no options there other than Schedule Publish/Unpublish which, even if I set the date in the past does not work as I am expecting it to.

    My last resort will be to change this in the database, but I was hoping there is a tool in Sitefinity to do this?

    Thanks,
    James
  2. James@Nw
    James@Nw avatar
    265 posts
    Registered:
    05 May 2009
    12 Sep 2011
    Link to this post
    Any news on this?
  3. KMac
    KMac avatar
    133 posts
    Registered:
    15 Dec 2008
    12 Sep 2011
    Link to this post
    We had a similar issue and ended up going the database route. If you end up doing the same, I'll save you some trouble: don't forget to change the information in sf_url_data as well otherwise you'll end up with broken links.
  4. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    12 Sep 2011
    Link to this post
    Hi Kmac,

    In Sitefinity 4.2.1679 we added a feature to the Migration Module that allows the change of a publication date for some content item. In order to use it include the following namespace:

    using Telerik.Sitefinity.Modules.Migration.Strategies;

    and then call

    contentItem.SetPublicationDate(manager, publicationDate);

    where manager is the appropriate content manager (e.g. BlogsManager) and publicationDate is the new publication date.

    Regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Robert
    Robert avatar
    49 posts
    Registered:
    21 Feb 2011
    30 Sep 2011
    Link to this post
    I saw this post and I think it relates to my issue.

    I want to be able to "schedule" a lot of blog posts.  Like, log in, write them all, schedule them for future publication, and have them automatically do that.

    Is that what this is referring to?  And if so, can someone translate what this means:

    include the following namespace:

    using Telerik.Sitefinity.Modules.Migration.Strategies;

    and then call

    contentItem.SetPublicationDate(manager, publicationDate);

    where manager is the appropriate content manager (e.g. BlogsManager) and publicationDate is the new publication date.
  6. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    Registered:
    03 Nov 2014
    03 Oct 2011
    Link to this post
    Hello Robert,

    In 4.2 SP1 we added a feature that allows you to set publish/unpublish date in the future. When you create a blog post click on More actions -> Publish/Unpublish on Specific Date. I attached a screenshot with the dialog.

    Kind regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered