I am trying to create a page layout with an XsltListViewWebPart that, no matter what site collection or subsite you're on, so long as that web has a list with that name, it will use it.
At the moment, using recommended methods, I receive "List not found" on sub-sites. Site collection root webs work just fine.
Within Elements.xml, embedded with the page layout definition:
<AllUsersWebPart WebPartZoneID="zoneidhere" WebPartOrder="1">
<![CDATA[
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="ShowWithSampleData" type="bool">False</property>
<property name="Default" type="string" />
<property name="NoDefaultStyle" type="string" null="true" />
<property name="CacheXslStorage" type="bool">True</property>
<property name="ViewContentTypeId" type="string" />
<property name="XmlDefinitionLink" type="string" />
<property name="ManualRefresh" type="bool">False</property>
<property name="ListUrl" type="string" >Lists/MyList</property>
<property name="TitleUrl" type="string">Lists/MyList</property>
<property name="Title" type="string">List Title</property>
<property name="AllowEdit" type="bool">True</property>
</properties>
</data>
</webPart>
</webParts>
]]>
</AllUsersWebPart>
I have also tried without the ListUrl and TitleUrl, and instead used ListDisplayName set to "MyList" which gave the same "List not found" results on subwebs.
Any ideas?