Copied to clipboard

Flag this post as spam?

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


  • Jinesh 33 posts 52 karma points
    Feb 27, 2012 @ 14:48
    Jinesh
    0

    Live writer and ublogsy issue in 'Link to document' property

    Hello,

     

    we are using ublogsy for one of the blog and now there was a need to integrate it with Windows Live Writer (WLW) so we referred to few of the links which we found from google for using WLW with umbraco ...

     

    we are facing very unique problem ...if we post from WLW it gets posted to umbraco under correct node but it shows '#' in 'Link to document' property (under properties tab) instead of path to document as per tree hierarchy ...   

    also we are getting following error in umbraco log 

    Couldn't find any page with the nodeId = 1247. This is most likely caused by the page isn't published!  Parameter name: nodeId 

    can someone throw some light on this issue. What might be going wrong and how can we get it working ?

    waiting for reply

     

    Regards,

    Jinesh

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 27, 2012 @ 15:33
    Anthony Dang
    0

    Which version of umbraco and ublogsy are you using?

     

  • Jinesh 33 posts 52 karma points
    Feb 27, 2012 @ 15:35
    Jinesh
    0

    umbraco - 4.7.1.1

    ublogsy - 2.0.0.1

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 27, 2012 @ 15:53
    Anthony Dang
    0

    Do you have auto date folders enabled?

     

     

  • Jinesh 33 posts 52 karma points
    Feb 27, 2012 @ 18:30
    Jinesh
    0

    yes

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Feb 27, 2012 @ 18:34
    Anthony Dang
    0

    That's probably it then.

    DateFolders will create folders and move a post to the folder. But does not publish it.

    2 options:

    1. Disable date folders

    2. Create your own event handler which publishes the node when it is moved. 

     

  • Jinesh 33 posts 52 karma points
    Feb 28, 2012 @ 13:34
    Jinesh
    0

    Thanks Anthony,

     

    as per your suggestion i made changes and it worked and following is the code which might help some one in future

     

    -          void Document_AfterPublish(Document sender, PublishEventArgs e)
    -              {
    -                  if (sender.ContentType.Alias == "uBlogsy - Post")
    -                  {
    -                      sender.Move(sender.ParentId);
    -                      umbraco.library.RefreshContent();
    -                  }
             } 

    thanks once again ...

     

    Regards,

    Jinesh

     

Please Sign in or register to post replies

Write your reply to:

Draft