Wednesday, November 19, 2008
 
  Forum  Products  BlogDisplay  Template for Std Blog display aggregation...
Previous Previous
 
Next Next
New Post 6/30/2008 12:13 PM
  timk
3 posts
No Ranking


Template for Std Blog display aggregation... 
Modified By timk  on 6/30/2008 1:22:43 PM)

If you, like me, ended up here because you needed to aggregate all recent posts for multiple blogs on a single page, but didn't want to use the core module because you wanted the articles to link back to the main blog page, then you may want this template.  This is a quick simple copy of the classes and format used by the blog module to display recent entries. Do the following and you'll have a nice aggregate of recent posts from all blogs that looks just like the core blog module recent entries display, but all links go to the main blog page.

  1. Copy the images folder from desktopmodules\blog to desktopmodules\Radiant.BlogDisplay.  If you don't want the images/icons for comments and such, you don't have to do this step.
  2. put <div class="blog_body"> in your module's Header Template.
  3. put the following into your ItemTemplate, and make sure you replace the relative paths with the path to the blog page of your site.
        <div class="blog_head">
            <h2 class="blog_title">
                <a href="/Blog/tabid/273/EntryID/[ITEMID]/Default.aspx">[TITLE]</a>
            </h2>
        </div>
        <span>By [USERFULLNAME] on [ADDEDDATE]</span>
        <p>
            <span>[ENTRY]  ...</span>
            <a class="blog_more_link" href="/Blog/tabid/273/EntryID/[ITEMID]/Default.aspx">Read More &raquo;</a>
        </p> 
        <div class="blog_footer">
            <div class="blog_footer_right">
                <a class="blog_comments_normal" href="/Blog/tabid/273/EntryID/[ITEMID]/Default.aspx">Comments ([COMMENTCOUNT])</a>
            </div>
            <div class="blog_footer_left">
                <span class="blog_topics">
                    <a href="/Blog/tabid/273/BlogID/[BLOGID]/Default.aspx">[USERFULLNAME]</a>
                </span>
            </div>
        </div>
  4. put </div> in your module's Footer Template.

Hopefully, this will save someone the time it took me to put this together...

 
New Post 7/1/2008 11:15 PM
  Rip Rowan
34 posts
No Ranking


Re: Template for Std Blog display aggregation... 

Tim - thanks for the template.  FYI, version 3.5 of the Blog module will resolve the link issue, as well as adding the option of using SEO-friendly URLs.

 
Previous Previous
 
Next Next
  Forum  Products  BlogDisplay  Template for Std Blog display aggregation...
Privacy Statement  |  Terms Of Use
Copyright 2008 Radiant Software Corporation. All Rights Reserved.