Skip Ribbon Commands
Skip to main content

How to build a scrolling marquee of blog postings from a sub-site.

  1. Using SharePoint Designer, open a Web Part page and view the Data Source Library (from the Task Panes menu).
  2. Select "Connect to another library..." from the bottom of the Task Pane
  3. Add the full URL for your blog sub site
  4. Expand the blog site and highlight the Posts list.
  5. Select "Show Data" from the drop down menu of the Posts list
  6. You should now be in the Data Source Details pane. Select "Insert Selected Fields as..." - "Multiple Item View..."
  7. In the Data View that has just been added to the page, select the Common Tasks menu ( > button in the top right of the web part)
  8. Set the View to the simple list, filter and sort as required.
  9. Add the following code into the Code View after the <xsl:template name="dvt_1.body"> line
    <marquee onmouseover="this.stop();" onmouseout="this.start();" truespeed="" scrollamount="1" scrollDelay="30" direction="left" valign="middle">
  10. Add the following line between the </xsl:for-each> and the closing dvt_body template tag.
    </marquee>
  11. Replace the contents of the <xsl:template name="dvt_1.rowview">
    template with
    <span><xsl:value-of select="ddwrt:FormatDateTime(string(@Created),1033 ,'dd-MMM-yy ')" /> - <a href="{@FileDirRef}/viewpost.aspx?id={@ID}"><xsl:value-of select="@Title" /></a> | </span>
  12. Save the page and view it in the browser
 

 Latest Blog Posts...