Copied to clipboard

Flag this post as spam?

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


  • pdotnet 3 posts 24 karma points
    Feb 09, 2010 @ 16:33
    pdotnet
    0

    Embedding blog macros inside an existing website?

    I've installed the Blog For Umbraco package and it created a new folder under /Content/Blog and I have my main site configured under /Content/SiteXYZ

    What I'm trying to do is as follows:  The main site is not blog-centric, but I need to add a news section and there has to be the ability for listing archives, organizing posts by category (for which I'll be using tags). Seems like the Blog package would be an ideal choice but I'm having trouble getting started. I can't seem to get any of the Blog macros to render content in my SiteXYZ folder.  For example, I have a static content page under SiteXYZ that I just want to put a list of Blog Tags on.  So I add the macro to my page but the list never renders any content. 

    I thought maybe it was because of the current hierarchy where i have both SiteXYZ and Blog at the same levels in the content tree.  So I've tried enabling the Blog child notetypes for my existing site's Document Types and then moving the whole blog folder under SiteXYZ so it now looks like this:  /Content/SiteXYZ/Blog  -- unfortunately that didn't work either. 

    Basically what I need to do is embed various Blog macros inside my main site.  Can this be done?

    Thanks in advance!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 09, 2010 @ 22:20
    Jan Skovgaard
    0

    Hi

    I think you might need to use the "RenderMacroContent" xslt extension to achieve this.

    You can see an example of the usage in this post: http://our.umbraco.org/forum/developers/xslt/6994-XSLT-RenderMacroContent--?p=0#comment25792

    Hope this helps.

    /Jan

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Feb 09, 2010 @ 23:57
    Morten Bock
    0

    Are you putting the macros in your RTE, or in the templates? The should be working out of the box as far as I know, so the question is what makes you site different. 

    If you just view the blog node directly, does that list the blog posts? Both inside your site, and as a separate top node?

Please Sign in or register to post replies

Write your reply to:

Draft