Content Query Web Part shows task list, but all tasks link to 'page not found'

From: "Orfeo" <Orfeo1atgmaildotcom>
Newsgroups: microsoft.public.sharepoint.portalserver
Subject: MOSS 2007: Content Query Web Part shows task list, but all tasks link to 'page not found'
Date: 8 Mar 2007 13:23:39 -0800

MOSS 2007: Content Query Web Part shows task list, but all tasks link to 'page not found'. The CQWP gets data from a task list in a site of the same site collection.

What could be wrong?

**************************************

From: "Pat Miller [MSFT]" <patmillatonlinedotmicrosoftdotcom>
Subject: Re: MOSS 2007: Content Query Web Part shows task list, but all tasks link to 'page not
found'
Date: Fri, 9 Mar 2007 09:34:59 -0800
Newsgroups: microsoft.public.sharepoint.portalserver

What is the actual URL that is emitted by the CQWP?

**************************************

From: "Orfeo"
Newsgroups: microsoft.public.sharepoint.portalserver
Subject: Re: MOSS 2007: Content Query Web Part shows task list, but all tasks link to 'page not
found'
Date: 13 Mar 2007 08:21:58 -0700

http://myserver:33333/_layouts/CopyUtil.aspx?Use=id&Action=dispform&ItemId=13&ListId=A12439EE-380F-430E-ADB7-90505FB62EF3&WebId=B9D68EFA-174E-4642-8A89-3D2B630D93AD&SiteId=f3e18275-3992-4e6e-93ab-dc7030c033d1

The tasks list is located in the top level Sharepoint site. The location of the tasks list doesnt seem to matter, the items in a tasks list in other site is also not accessible (page not found) through a CQWP. The normal patch should include the top level site (i guess) like http://mysever:33333/portal/_layouts  don't you think?

Any ideas?
Thanks

**************************************

From: <AdriVerlaanMSFT discussions microsoft com>
Subject: Re: MOSS 2007: Content Query Web Part shows task list, but all tas
Date: Wed, 14 Mar 2007 13:27:18 -0700
Newsgroups: microsoft.public.sharepoint.portalserver

Hi Orfeo,

Yes, the site-collection url is missing from the url that is generated.  If you don't have a site-collection at the root of your url, then you will run into this issue for non-streamed object, such as Events/Task/etc.

You can fix this by modifying the following line in ContentQueryMain.xslt from

        <xsl:if test="$UseCopyUtil = 'True'">
            <xsl:value-of select="concat('/_layouts/CopyUtil.aspx?Use=id&Action=dispform&ItemId=',@ID,'&ListId=',@ListId,'&WebId=',@WebId,'&SiteId=',$SiteId)"/>
        </xsl:if>

to (added $SiteUrl)

        <xsl:if test="$UseCopyUtil = 'True'">
            <xsl:value-of select="concat($SiteUrl,'/_layouts/CopyUtil.aspx?Use=id&Action=dispform&ItemId=',@ID,'&ListId=',@ListId,'&WebId=',@WebId,'&SiteId=',$SiteId)"/>
        </xsl:if>

Adri Verlaan [MSFT]
--
This posting is provided "AS IS" with no warranties, and confers no rights.

**************************************

From: "Orfeo"
Newsgroups: microsoft.public.sharepoint.portalserver
Subject: Re: MOSS 2007: Content Query Web Part shows task list, but all tas
Date: 15 Mar 2007 08:28:19 -0700

Hi Adri, thank you for that code.

Cheers
yuri

P.s. I was wondering..I am currently still using the B2TR version of MOSS2007, is this issue still present in the final version? Seems a bit unhandy.

End slug

Posted using BlogJet

Published Tue, Mar 27 2007 10:38 by OBTS
Filed under: