Hugo Esperanca - Sunday, July 20, 2008
Ever wanted to use the same page layout containing a DFWP, and bind it to a local site list in each site of your site collection ?
Ever want to be able to deploy a page with a DFWP to a different server?
If you ever tried any of the above using SharePoint Designer you would have found problems because, by default, SharePoint Designer binds the control to the list instance using the list instance GUID. To resolve this we need to replace the GUIDs by the list name. The steps to do this are:
<WebPartPages:DataFormParameter Name="ListID" ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{GUID}"/>
<WebPartPages:DataFormParameter Name="ListID" ParameterKey="ListID"
PropertyName="ParameterValues" DefaultValue="{GUID}"/>
<WebPartPages:DataFormParameter Name="ListName" ParameterKey="ListName" PropertyName="ParameterValues" DefaultValue="LIST_NAME"/>
<WebPartPages:DataFormParameter Name="ListName" ParameterKey="ListName"
PropertyName="ParameterValues" DefaultValue="LIST_NAME"/>
<ParameterBinding Name="ListID" Location="None" DefaultValue="{GUID}"/>
with:
<ParameterBinding Name="ListName" Location="None" DefaultValue="LIST_NAME"/>
This should give you a GUID free DFWP that can be placed on a page layout used by multiple ...
Full story
Comments (2)
Category:
Tags:: SharePoint
Display as : cloud | list
© 2009 Collaboris Ltd. All rights reserved.
Sitefinity ASP.NET CMS