Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have this in my custom pagelayout:

<ZoneTemplate>

    <PublishingWebControls:ContentByQueryWebPart runat="server" DataSourceID="" HelpMode="Modeless" ChromeType="TitleOnly" SuppressWebPartChrome="False" ListUrl="http://asbkom-pc/arden/Lists/Ardennyheder/AllItems.aspx" MissingAssembly="Cannot import this Web Part." PageSize="-1" IsIncludedFilter="" ViewContentTypeId="" ImportErrorMessage="Cannot import this Web Part." IsVisible="True" Title="Lokale nyheder" ZoneID="" AutoRefresh="False" FrameType="TitleBarOnly" ManualRefresh="False" ExportControlledProperties="True" ItemStyle="Default" ID="g_a27608b2_e418_4f8f_94fd_e04176599672" ServerTemplate="" FrameState="Normal" PartOrder="2" ShowWithSampleData="False" AllowHide="True" SortBy="{8c06beca-0777-48f7-91c7-6da68bc07b69}" ViewFlag="0" UseSQLDataSourcePaging="True" PartImageLarge="" DataMappings="Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|Description:{9da97a8a-1da5-4a77-98d3-4bc10456e700},_Comments,Note;|LinkUrl:{94f89715-e097-4e8b-ba79-ea02aa8b7adb},FileRef,Lookup;|ImageUrl:{B9E6F3AE-5632-4b13-B636-9D1A2BD67120},EncodedAbsThumbnailUrl,Computed;{543bc2cf-1f30-488e-8f25-6fe3b689d9ac},PublishingRollupImage,Image;|" AllowMinimize="True" AsyncRefresh="False" InitialAsyncDataFetch="False" AutoRefreshInterval="60" Dir="Default" AllowZoneChange="True" PartImageSmall="" GroupStyle="DefaultHeader" IsIncluded="True" EnableOriginalValue="False" DetailLink="" Description="Viser en dynamisk visning af indhold fra dit websted." SortByDirection="Desc" ExportMode="All" AllowEdit="True" ConnectionID="00000000-0000-0000-0000-000000000000" AllowConnect="True" ListId="00000000-0000-0000-0000-000000000000" AllowRemove="True" NoDefaultStyle="" HelpLink="" ListDisplayName="" __MarkupType="vsattributemarkup" __WebPartId="{a27608b2-e418-4f8f-94fd-e04176599672}" WebPart="true" Height="" Width="" ItemLimit="5"><DataFields>
</DataFields><SampleData>
<dsQueryResponse>
                    <Rows>
                        <Row Title="Element 1" LinkUrl="http://Element1" Group="Gruppehoved" __begincolumn="True" __begingroup="True" />
                        <Row Title="Element 2" LinkUrl="http://Element2" __begincolumn="False" __begingroup="False" />
                        <Row Title="Element 3" LinkUrl="http://Element3" __begincolumn="False" __begingroup="False" />
                    </Rows>
                    </dsQueryResponse></SampleData><Xsl>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x"> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/Header.xsl" /> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/ItemStyle.xsl" /> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/ContentQueryMain.xsl" /> </xsl:stylesheet></Xsl></PublishingWebControls:ContentByQueryWebPart>

    <PublishingWebControls:ContentByQueryWebPart runat="server" DataSourceID="" HelpMode="Modeless" ChromeType="TitleOnly" SuppressWebPartChrome="False" ListUrl="" MissingAssembly="Cannot import this Web Part." PageSize="-1" IsIncludedFilter="" ViewContentTypeId="" ImportErrorMessage="Cannot import this Web Part." IsVisible="True" Title="Gæster i huset" ZoneID="" AutoRefresh="False" FrameType="TitleBarOnly" ManualRefresh="False" ExportControlledProperties="True" ItemStyle="Default" ID="g_9c579309_e44e_4c7b_b136_d9f6b053c111" ServerTemplate="" FrameState="Normal" PartOrder="4" ShowWithSampleData="False" AllowHide="True" SortBy="{8c06beca-0777-48f7-91c7-6da68bc07b69}" ViewFlag="0" UseSQLDataSourcePaging="True" PartImageLarge="" DataMappings="Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|Description:{9da97a8a-1da5-4a77-98d3-4bc10456e700},_Comments,Note;|LinkUrl:{94f89715-e097-4e8b-ba79-ea02aa8b7adb},FileRef,Lookup;|ImageUrl:{B9E6F3AE-5632-4b13-B636-9D1A2BD67120},EncodedAbsThumbnailUrl,Computed;{543bc2cf-1f30-488e-8f25-6fe3b689d9ac},PublishingRollupImage,Image;|" AllowMinimize="True" AsyncRefresh="False" InitialAsyncDataFetch="False" AutoRefreshInterval="60" Dir="Default" AllowZoneChange="True" PartImageSmall="" GroupStyle="DefaultHeader" IsIncluded="True" EnableOriginalValue="False" DetailLink="" Description="Viser en dynamisk visning af indhold fra dit websted." SortByDirection="Desc" ExportMode="All" AllowEdit="True" ConnectionID="00000000-0000-0000-0000-000000000000" AllowConnect="True" ListId="00000000-0000-0000-0000-000000000000" AllowRemove="True" NoDefaultStyle="" HelpLink="" ListDisplayName="" __MarkupType="vsattributemarkup" __WebPartId="{9c579309-e44e-4c7b-b136-d9f6b053c111}" WebPart="true" Height="" Width=""><DataFields>
</DataFields><SampleData>
<dsQueryResponse>
                    <Rows>
                        <Row Title="Element 1" LinkUrl="http://Element1" Group="Gruppehoved" __begincolumn="True" __begingroup="True" />
                        <Row Title="Element 2" LinkUrl="http://Element2" __begincolumn="False" __begingroup="False" />
                        <Row Title="Element 3" LinkUrl="http://Element3" __begincolumn="False" __begingroup="False" />
                    </Rows>
                    </dsQueryResponse></SampleData><Xsl>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x"> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/Header.xsl" /> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/ItemStyle.xsl" /> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/ContentQueryMain.xsl" /> </xsl:stylesheet></Xsl></PublishingWebControls:ContentByQueryWebPart>
<PublishingWebControls:ContentByQueryWebPart runat="server" DataSourceID="" HelpMode="Modeless" ChromeType="TitleOnly" SuppressWebPartChrome="False" ListUrl="" MissingAssembly="Cannot import this Web Part." PageSize="-1" IsIncludedFilter="" ViewContentTypeId="" ImportErrorMessage="Cannot import this Web Part." IsVisible="True" Title="Ugens menu" ZoneID="" AutoRefresh="False" FrameType="TitleBarOnly" ManualRefresh="False" ExportControlledProperties="True" ItemStyle="Default" ID="g_97cb6f52_d01f_4519_a39b_40af7ccf37a8" ServerTemplate="" FrameState="Normal" PartOrder="6" ShowWithSampleData="False" AllowHide="True" SortBy="{8c06beca-0777-48f7-91c7-6da68bc07b69}" ViewFlag="0" UseSQLDataSourcePaging="True" PartImageLarge="" DataMappings="Title:{fa564e0f-0c70-4ab9-b863-0177e6ddd247},Title,Text;|Description:{9da97a8a-1da5-4a77-98d3-4bc10456e700},_Comments,Note;|LinkUrl:{94f89715-e097-4e8b-ba79-ea02aa8b7adb},FileRef,Lookup;|ImageUrl:{B9E6F3AE-5632-4b13-B636-9D1A2BD67120},EncodedAbsThumbnailUrl,Computed;{543bc2cf-1f30-488e-8f25-6fe3b689d9ac},PublishingRollupImage,Image;|" AllowMinimize="True" AsyncRefresh="False" InitialAsyncDataFetch="False" AutoRefreshInterval="60" Dir="Default" AllowZoneChange="True" PartImageSmall="" GroupStyle="DefaultHeader" IsIncluded="True" EnableOriginalValue="False" DetailLink="" Description="Viser en dynamisk visning af indhold fra dit websted." SortByDirection="Desc" ExportMode="All" AllowEdit="True" ConnectionID="00000000-0000-0000-0000-000000000000" AllowConnect="True" ListId="00000000-0000-0000-0000-000000000000" AllowRemove="True" NoDefaultStyle="" HelpLink="" ListDisplayName="" __MarkupType="vsattributemarkup" __WebPartId="{97cb6f52-d01f-4519-a39b-40af7ccf37a8}" WebPart="true" Height="" Width=""><DataFields>
</DataFields><SampleData>
<dsQueryResponse>
                    <Rows>
                        <Row Title="Element 1" LinkUrl="http://Element1" Group="Gruppehoved" __begincolumn="True" __begingroup="True" />
                        <Row Title="Element 2" LinkUrl="http://Element2" __begincolumn="False" __begingroup="False" />
                        <Row Title="Element 3" LinkUrl="http://Element3" __begincolumn="False" __begingroup="False" />
                    </Rows>
                    </dsQueryResponse></SampleData><Xsl>
<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cmswrt="http://schemas.microsoft.com/WebPart/v3/Publishing/runtime" exclude-result-prefixes="xsl cmswrt x"> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/Header.xsl" /> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/ItemStyle.xsl" /> <xsl:import href="/Style%20Library/XSL%20Style%20Sheets/ContentQueryMain.xsl" /> </xsl:stylesheet></Xsl></PublishingWebControls:ContentByQueryWebPart>

    </ZoneTemplate>

How can I set this up to fetch the lists as I would do manually under "Source" in the CQWP?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.