Daniel @ The Road to MCA

Hi All,

I seem to have hit a well in trying to accomplish this.

The Objective: I wish to display our CEO's 'Recent Blog Posts' on the front page our portal.

The Problem: Due to not being in the same Site Collection, anything i try is swatted down by MOSS.

Ií»ve tried Content Query Web Parts, Data Views, Copying the 'Recent Blog Posts' web part from MySite, tweaking with it and tyring it on the default portal page.

Using Search Scopes with a Search Core Results web part (caní»t get any results to display, even though the content source has 1 item in it, I think ití»s due to something with FileExtention:aspx, but Ií»m unsure.

ANY Ideas or suggestions are welcome!!!!

Is a custom web part needed (which i can develop) to make use of the MySite web services and display it (I hope there is another option).

Regards,

Daniel Brown




Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Curtis Ruppe (MicroStaff IT)

Your CEO will need to allow everybody to see it, and you will need to access it in the form of http://<mysitehostlocation>/<personallocation>/<username>/<blogsite>.





Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Daniel @ The Road to MCA

Yes, thats how to access the site directly, however i need to display the list of 'Recent Blog Posts' as a webpart on the default page of the portal ie. http://mossportal/pages/default.aspx

Thanks,

Daniel






Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Curtis Ruppe (MicroStaff IT)

I would personally recommend (for this task) just using SharePoint Designer and creating a data view web part based on the blog site. You might even be able to pull the same metadata off of the existing Blog webpart to help you determine what columns are needed.





Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Daniel @ The Road to MCA

Hi Curtis,

Thanks for your replies.

I have been trying to use the data view web part, but without much luck. Everything i try i get the error :

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.


Which makes it very frustrating Sad

What I did was export the MySite one to a .webpart file and re-import it on the portal site and changes some properties, but alas, no luck Sad

Ií»m fresh out of ideas. Sad

Regards,

Daniel Brown






Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Curtis Ruppe (MicroStaff IT)

Did you use SharePoint Designer to create that web part, though SharePoint Designer understands how to access contents outside of the existing site (I also though it understood how to go outside it's own site colleciton as well).





Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Daniel @ The Road to MCA

Hi Curtis,

No I didnt, I exported it via the browser.

When I use 'Connect to another library...' and add thte collection of the CEO mysite, all the categories have 0 entries.

It doesnt even display 'SharePooint Lists or Libraries'

Any ideas on this

Regards,

Daniel Brown






Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Curtis Ruppe (MicroStaff IT)

It's got to be a connectivity issue, since I believe SharePoint Designer does allow you to connect to external sources of all sorts. I don't know what to tell you beyond that.





Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Daniel @ The Road to MCA

Ok, im getting really frusted now! Stick out tongue

Here is the HTML WebPart

<SPSWC:BlogView runat="server" AllowConnect="True" PartImageSmall="" MissingAssembly="Cannot import this Web Part." IsIncludedFilter="" ExportMode="All" ID="g_38c9699c_6b83_476c_9324_0933ebda07be" AllowRemove="True" FrameState="Normal" ConnectionID="00000000-0000-0000-0000-000000000000" DetailLink="" ExportControlledProperties="True" IsIncluded="True" IsVisible="False" AllowEdit="True" Dir="Default" SuppressWebPartChrome="False" ViewContentTypeId="" PageSize="-1" PartOrder="1" FrameType="TitleBarOnly" DataSourceID="" UseSQLDataSourcePaging="True" AllowHide="True" AllowMinimize="True" ShowWithSampleData="false" ChromeType="TitleOnly" HelpMode="Modeless" Title="Recent Blog Posts" HelpLink="" Description="The most recent blog posts for the user" AllowZoneChange="True" PartImageLarge="" __MarkupType="vsattributemarkup" __WebPartId="{38C9699C-6B83-476C-9324-0933EBDA07BE}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><XslLink>
http://mossserver/Pages/blog.xsl</XslLink>
<ParameterBindings>
<ParameterBinding Name="webUrl" Location="None" DefaultValue="http://mossserver/personal/danielb/Blog/"/>
<ParameterBinding Name="emptyText" Location="None" DefaultValue="There are no posts in this category."/>
</ParameterBindings>
<DataFields>
</DataFields>
<SampleData>
<dsQueryResponse> <NewDataSet> <Row ID="-1" PublishedDate="1/1/2006" Body="This is a sample blog post. It would typically be filled with a post by the user." Author="Sample User" Title="Sample Post" CategoryID="-1" PostCategory="Sample" NumComments="0"/> </NewDataSet> </dsQueryResponse></SampleData>
</SPSWC:BlogView>


Now, iv also copied the paramters from the webpart, which are as follows:

<ParameterBinding Name="webUrl" Location="None" DefaultValue="http://mossserver/personal/danielb/Blog/"/>
<ParameterBinding Name="emptyText" Location="None" DefaultValue="There are no posts in this category."/>


and then Blog.xsl (copied to the pages library from http://mossserver/personal/danielb/blog.xsl (with tweakings of paths))

<xslTongue Tiedtylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlnsBig Smile="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="d xsl msxsl ddwrt xmlns x __designer WebControls asp ddwrt2" xmlnsBig Smiledwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urnTongue Tiedchemas-microsoft-com:xslt" xmlns:WebControls="Microsoft.Sharepoint.WebControls" xmlnsBig Smiledwrt2="urn:frontpage:internal">
<xslSurpriseutput method="html" indent="no"/>
<xslStick out tonguearam name="dvt_apos">'</xslStick out tonguearam>
<xslStick out tonguearam name="filterParam"></xslStick out tonguearam>
<xslStick out tonguearam name="webUrl">http://mossserver/personal/danielb/Blog/</xslStick out tonguearam>
<xslStick out tonguearam name="emptyText">There are no posts in this category.</xslStick out tonguearam>
<xsl:variable name="dvt_1_automode">0</xsl:variable>
<xsl:template match="/">
<xsl:call-template name="dvt_1"/>
</xsl:template>
<xsl:template name="dvt_1">
<xslStick out tonguearam name="ParentPath" />
<xsl:variable name="dvt_StyleName">Commas</xsl:variable>
<xsl:variable name="Rows" select="/dsQueryResponse/NewDataSet/Row" />
<xsl:variable name="RowCount" select="count($Rows)"/>
<xsl:variable name="IsEmpty" select="$RowCount = 0"/>
<xsl:choose>
<xsl:when test="$IsEmpty">
<xsl:call-template name="dvt_1.empty"/>
</xsl:when>
<xslSurprisetherwise>
<xsl:call-template name="dvt_1.body">
<xsl:with-param name="ParentPath" select="$ParentPath" />
<xsl:with-param name="Rows" select="$Rows" />
</xsl:call-template>
</xslSurprisetherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="dvt_1.empty" xmlnsBig Smiledwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urnTongue Tiedchemas-microsoft-com:xslt" xmlns:WebControls="Microsoft.Sharepoint.WebControls">
<xsl:value-of select="$emptyText"/>
</xsl:template>
<xsl:template name="dvt_1.body">
<xslStick out tonguearam name="ParentPath" />
<xslStick out tonguearam name="Rows" />
<xsl:for-each select="$Rows">
<xsl:variable name="SrcPos">
<xsl:number />
</xsl:variable>
<xsl:call-template name="dvt_1.rowview">
<xsl:with-param name="ParentPath" select="$ParentPath" />
<xsl:with-param name="SrcPos" select="$SrcPos" />
</xsl:call-template>
</xsl:for-each>
</xsl:template>
<xsl:template name="dvt_1.rowview">
<xslStick out tonguearam name="ParentPath" />
<xslStick out tonguearam name="SrcPos" />
<div style='margin-left:5px;'>
<img style='position:relative;top:-2px;' src='/_layouts/images/discbul.gif' alt=''/> <a style="color: #295AC6;padding-left:3px;">
<xsl:attribute name="href"><xsl:value-of select="$webUrl" disable-output-escaping="yes" />Lists/Posts/Post.aspx ID=<xsl:value-of select="@ID"/></xsl:attribute><xsl:value-of select="@Title" />
</a> - <xsl:value-of select="@NumComments"/>
<xsl:choose>
<xsl:when test="@NumComments = 1"> Comment</xsl:when>
<xslSurprisetherwise> Comments</xslSurprisetherwise>
</xsl:choose>
</div>
</xsl:template>
</xslTongue Tiedtylesheet>

Now afew issues. It never shows anything other than the sample data and it ALWAYS goes back to being hidden, even when i unhide it, save it, bnack to hidden!

I think the wall is getting sore from banging my head against it! hehe

Cheers

Daniel Brown


P.S sorry for the smily faces and ***, i tried to use the code block option, but it makes half of it dissapear






Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Curtis Ruppe (MicroStaff IT)

How bout this for a troubleshooting measure. Create a blog site below your current site and reference it instead. Put in some mock posts and verify this webpart can connect to it. Once you can get that to work, then go ahead and update the urls as appropriate to the /personal/danielb/Blog/ location. Also (since I don't remember) verify you Application Pool identity for your "team" site has read access to /personal/danielb/Blog/ site collection. I've never looked at the emitted HTML after using this webpart, so I'm assuming all that XSLT is being used server-side to render the HTML on the client-side.

I know about the issue. I've had it plenty of times myself...and it makes me and !!!





Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Daniel @ The Road to MCA

Hi Curtis,

Ill be trying this shortly to see if i can do it.

Cheers,

Daniel






Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Daniel @ The Road to MCA

Ok, just a quick update,

Ií»ve checked if the App Pool identify can access the MySite collection.. It can.

Still SharePoint designer refuses to list any lists, libraries or whatnot when using the "Connect to another library" with the Data Source Connector.

This is being stupid, surly there must be away to show a list from 1 site collection on another site collection! Everything I try, I turn up empty handed.

Does anyone else have a means of getting this to work correctly

To recap what Ií»m trying to do:

Display a list of 'Recent Blog Posts' from the CEO's Mysite on the portals default.aspx (2 different site collections)

Regards,

Daniel Brown






Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

pturbo911

Hi Daniel,

I'm afraid I don't have a solution for you but I do feel your pain. I'm new to sharepoint but trying to do something similar.

What I'm trying to do is have many blog sites (withing peoples mysites) all roll up to a portal page.

I'd be very interested if you found a solution to your problem.

One avenue I considered going down was to get an rss feed from the blog page and display it using a rss reader web part on the main portal page. The problem with this is that the reader doesn't allow authenticated feeds. I've tried changing the security policy of the site but it just messed up access rights.

Kind regards,

James






Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Alexander Nichiporovich

Hi. I am a new in SharePoint, but I got the same error - "Unable to display this Web Part" - only in case if I am using XslLink property in my web part. If anyone found a solution, please write some notes about it. (sorry that post it to wrong thread)






Re: SharePoint - General Question and Answers and Discussion Displaying Recent Blog Posts on Portal default page

Daniel @ The Road to MCA

Hi,

Sorry, but yoru comment someone doesnt sit with me correctly. You post on a existing thread, which is off topic to yours, then you say sorry for doing so

Wouldnt it be better to make yoruown thread explain your own problems and what actions you have taken to try and overcome your problem instead of just slapping it on mine

Regards,

Daniel Brown