Copied to clipboard

Flag this post as spam?

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


  • Tom 713 posts 954 karma points
    Dec 01, 2010 @ 22:57
    Tom
    0

    Blog Date Folders.. Post Not Assigned To Date Folder

    Hi Guys,

    I moved my blog from the very root of the tree to become a descendant of my homepage node..

     

    now when i create new blog posts using right click to create a blog post but it's not being assigned to a date folder.

    has anyone else come across a solution

     

    Cheers,

    Tom

  • Chris Koiak 700 posts 2626 karma points
    Dec 02, 2010 @ 10:56
    Chris Koiak
    0

    Hi,

    I usually have the blog under my homepage node without any issues. Do any errors appear in umbracoLog table?

    Are you definately creating the item under the 'Blog' root node first. It should then be moved when it's published.

    Cheers,

    Chris

  • Tom 713 posts 954 karma points
    Dec 02, 2010 @ 23:47
    Tom
    0

    Hi Chris,

    there's nothing suspect in the log:

    id userId NodeId Datestamp logHeader logComment

    10818 0 1969 2010-12-03 09:46:19.750 Publish

    10819 0 -1 2010-12-03 09:46:19.750 Debug Xml saved in 00:00:00.0368439

    10817 0 1969 2010-12-03 09:46:19.633 Publish

    10816 0 1969 2010-12-03 09:46:19.617 Debug Start Before Publish Event for Blog Post 1969

    10815 0 1969 2010-12-03 09:46:18.863 Save

    10814 0 1969 2010-12-03 09:46:07.820 Open

    10813 0 1969 2010-12-03 09:46:06.703 New

     

    but I was wondering where would i hook in to the event that moves the node for debugging purposes?

     

    Cheers,

    Tom

  • Tom 713 posts 954 karma points
    Dec 03, 2010 @ 01:52
    Tom
    0

      void Document_New(Document sender, umbraco.cms.businesslogic.NewEventArgs e)

            {

                if (sender.ContentType.Alias == "BlogPost")

                {

     

                    if (sender.getProperty("PostDate") != null)

                    {

                        sender.getProperty("PostDate").Value = sender.CreateDateTime.Date;

                    }

     

                }

            }

     

     

     

    The source is referring to a property called postdate however there is no PostDate property on my blog post doctype..

     

    is this an error in the install or something else?

  • Daniel Bardi 927 posts 2562 karma points
    Dec 06, 2010 @ 23:29
    Daniel Bardi
    0

    PostDate is on the lastest release I installed today.. It's from July 2010

Please Sign in or register to post replies

Write your reply to:

Draft