Copied to clipboard

Flag this post as spam?

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


  • Allan49 35 posts 55 karma points
    Sep 27, 2011 @ 23:20
    Allan49
    0

    New to uBlogsy, how to add uBlogsy to an existing site

    Hi,

    I am new to uBlogsy. What would be the best way to add uBlogsy to an existing site? My site already has lots of contents.

    To test and practice, I’ve just tried installing uBlogsy on top of the business starter kit, but uBlogsy stays beside the root content as a sibling, not child. Then I moved uBlogsy as a child of the site root folder, but uBlogsy’s navigation does not integrate with the main site and it lists only nodes inside the uBlogsy’s folder.

    I have a feeling that I am not doing it in a right way. Also I like to upgrade to uBlogsy V2 when it becomes available.

    Any help would be appreciated

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Sep 28, 2011 @ 10:37
    Anthony Dang
    0

    You're on the right track.

    uBlogsy can exist anywhere in your tree. You just need to modify the base master page. ie. the one which has the <html> tag. Make it inherit from your own master page.

    Also take out the navigation if ublogsy is not the root.

     

     

  • Allan49 35 posts 55 karma points
    Sep 28, 2011 @ 16:51
    Allan49
    0

     

    Hi Anthony,

    Thank you for help. Also, thank you very much for the great work.

    The only outstanding issue left is the navigation.

    I like to use razor macros and I hope that I use uBlogsyNavigation for the whole site. I went through uBlogsyNavigation.cshtml file and I changed this line:

     

        var nodes = new DynamicNode(Model.Id)

                            .AncestorOrSelf(1)

                            //.DescendantsOrSelf("uBlogsyPage")

                            .DescendantsOrSelf("HomePage")

                            .Items

                            .Where(x => x.GetProperty("umbracoNaviHide").Value != "1");

    But it just shows the “Home” link on the menu. Is there any quick way to generalize uBlogsyNavigation.cshtml and use it everywhere?

Please Sign in or register to post replies

Write your reply to:

Draft