How to build a scrolling marquee of blog postings from a sub-site.
- Using SharePoint Designer, open a Web Part page and view the Data Source
Library (from the Task Panes menu).
- Select "Connect to another library..." from the bottom of the Task Pane
- Add the full URL for your blog sub site
- Expand the blog site and highlight the Posts list.
- Select "Show Data" from the drop down menu of the Posts list
- You should now be in the Data Source Details pane. Select "Insert
Selected Fields as..." - "Multiple Item View..."
- 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)
- Set the View to the simple list, filter and sort as required.
- 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">
- Add the following line between the </xsl:for-each> and the closing
dvt_body template tag.
</marquee>
- 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>
- Save the page and view it in the browser