Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • javier 64 posts 84 karma points
    Jan 31, 2011 @ 08:32
    javier
    0

    Change Post Date

    Hi guys! I'm using blog 4 umbraco to get a small news system. But before we start to use it, we need to add a lot of old news. The problem is changing Post date to have correctly ordered news.

    How can i change posting date?

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jan 31, 2011 @ 08:57
    Richard Soeteman
    0

    You can use CMSImport and map the Umbraco CreateDate property against the date columns from your database that containst the old news. Only thing is that Blog4Umbraco is creating Date folders when creating the Document. So a manual process would be to create those folders for the correct dates.

    Cheers,

    Richard

  • javier 64 posts 84 karma points
    Jan 31, 2011 @ 10:34
    javier
    0

    i have just tried it but i have some problems.

    The import package is simple but awesome, very useful. But when i import data, i select Blog Post as Template. Previously i have created the nodes 2004>11>26 for year/month/day.

    Then i select date node to import the data, but it create again all nodes behind 26. Now i have a blog post under 2004>11>26>2011>1>31 and CREATEDATE it's OK, is 26/11/2004  but it shows on blog with today import date 31/01/2001.The curious thing is that Blog is showing with correct date order, but not correct showing date.

    Where can be the problem?

    edit: can be on Createdate of "Year,Month,Day" nodes¿¿?¿

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Jan 31, 2011 @ 10:42
    Richard Soeteman
    0

    Hi Could it be that the xslt is using the Update Date instead of CreateDate?

  • javier 64 posts 84 karma points
    Jan 31, 2011 @ 11:18
    javier
    0

    umm...BlogListPosts.xslt

    <div class="entry-date">
    <abbr class="published" title="umbraco.library:ShortDate($post/@updateDate)">
    <xsl:value-of select="umbraco.library:FormatDateTime($post/@updateDate,'dd-MM-yyyy HH:mm')"/>
    </abbr>
    </div>

    yeah. u need to change this where is @updateDate to -> @CreateDate

    Then if it can help somebody:

    If you need to change Post Date or import old news into new blog 4 umbraco, u need the CMSimport to import data into BlogPost under blog Node, and then if you want to show them arranged by date in the node tree you  must create manually Year/Month/Day nodes and move them. Also is possible that you need to change XSLT file to show Create date and not Update date

     

    Thanks Richard you were very fast and very useful.

    Best Regards Richard.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies