1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Sitefinity 4.0 blog post backdating

Sitefinity 4.0 blog post backdating

6 posts, 0 answered
  1. Eric
    Eric avatar
    2 posts
    Registered:
    31 Mar 2011
    04 Apr 2011
    Link to this post
    Is there any way to edit individual blog posts to alter the publication date? When I'm moving from my current site to my new site, I'll have dozens of old entries, all showing today as their date of publication. Is this feature there and well hidden? Or is it planned for a future version?

    Thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    04 Apr 2011
    Link to this post
    Hello Eric,

    When you create a post the publication date is set to DateTime.Now, but you can get the BlogPost for editing and update its publication date through the API.

    http://www.sitefinity.com/40/help/developers-guide/sitefinity-essentials-modules-blogs.html

    Best wishes,
    Ivan Dimitrov
    the Telerik team

  3. Michael
    Michael avatar
    59 posts
    Registered:
    02 Nov 2010
    05 Apr 2011
    Link to this post
    Is this true for News Items.  THe only way to assign a date to them other than the time they are created is by creating custom code?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    05 Apr 2011
    Link to this post
    Hello Michael,

    I logged a task for exposing an option that would allow you to set the Publication_Date from the UI instead of working programmatically. We will review the task on our next planning and see if we could implement it  for Q2 release. Currently you have to use the API to do this.

    All the best,
    Ivan Dimitrov
    the Telerik team

  5. Michael
    Michael avatar
    59 posts
    Registered:
    02 Nov 2010
    08 Apr 2011
    Link to this post
    Is it possible to add it through the backend advanced settings area under News->Controls>NewsBackend->Views->NewsBackendEdit->Sections->MainSection->Fields-> Add new Date Field here?

    I tried it with but the DateCreated and PublicationDate but it doesn't seem to save any of those changes.
  6. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    09 Apr 2011
    Link to this post
    Hi Michael,

    A quick workaround is to add a custom field to News items of type DateTime where you can set the desired date from the UI. Then you can  run a code that will get the value from this field and set the PublicationDate accordingly. Please check this thread from our forums where this solution is described in more detail.

    Best wishes,
    Boyan Barnev
    the Telerik team

6 posts, 0 answered