List View Web Part cross sites


/ Published in: XML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!-- Import and export your list web part and update the webID property -->
  2. <webParts>
  3. <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
  4. <metaData>
  5. <type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
  6. <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
  7. </metaData>
  8. <data>
  9. <properties>
  10. <property name="InitialAsyncDataFetch" type="bool">False</property>
  11. <property name="ChromeType" type="chrometype">Default</property>
  12. <property name="Title" type="string" >List Test </property>
  13. <property name="Height" type="string" />
  14. <property name="CacheXslStorage" type="bool">True</property>
  15. <property name="ListDisplayName" type="string" />
  16. <property name="AllowZoneChange" type="bool">True</property>
  17. <property name="AllowEdit" type="bool">True</property>
  18. <property name="XmlDefinitionLink" type="string" />
  19. <property name="DataFields" type="string" />
  20. <property name="Hidden" type="bool">False</property>
  21. <property name="ListName" type="string">{848CC729-7ABF-4FAB-B703-48BC18F9B637}</property>
  22. <property name="NoDefaultStyle" type="string" null="true" />
  23. <property name="AutoRefresh" type="bool">False</property>
  24. <property name="ViewFlag" type="string">25165829</property>
  25. <property name="Direction" type="direction">NotSet</property>
  26. <property name="AutoRefreshInterval" type="int">60</property>
  27. <property name="AllowConnect" type="bool">True</property>
  28. <property name="Description" type="string" />
  29. <property name="AllowClose" type="bool">True</property>
  30. <property name="ShowWithSampleData" type="bool">False</property>
  31. <property name="ParameterBindings" type="string">
  32. &lt;ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/&gt;
  33. &lt;ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/&gt;
  34. &lt;ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/&gt;
  35. &lt;ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/&gt;
  36. &lt;ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" /&gt;
  37. &lt;ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" /&gt;
  38. &lt;ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" /&gt;
  39. &lt;ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" /&gt;
  40. &lt;ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" /&gt;
  41. &lt;ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" /&gt;
  42. </property>
  43. <property name="Xsl" type="string" null="true" />
  44. <property name="CacheXslTimeOut" type="int">86400</property>
  45. <property name="WebId" type="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">5607c748-3a41-43d8-8ba2-bf6abffa0260</property>
  46. <property name="ListUrl" type="string" >
  47. /sites/training/Lists/Employee trainings
  48. </property>
  49. <property name="DataSourceID" type="string" />
  50. <property name="FireInitialRow" type="bool">True</property>
  51. <property name="ManualRefresh" type="bool">False</property>
  52. <property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Html, TabularView, Mobile, DefaultMobile</property>
  53. <property name="ChromeState" type="chromestate">Normal</property>
  54. <property name="AllowHide" type="bool">True</property>
  55. <property name="PageSize" type="int">-1</property>
  56. <property name="SampleData" type="string" null="true" />
  57. <property name="BaseXsltHashKey" type="string" null="true" />
  58. <property name="AsyncRefresh" type="bool">False</property>
  59. <property name="HelpMode" type="helpmode">Modeless</property>
  60. <property name="ListId" type="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">848cc729-7abf-4fab-b703-48bc18f9b637</property>
  61. <property name="DataSourceMode" type="Microsoft.SharePoint.WebControls.SPDataSourceMode, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">List</property>
  62. <property name="AllowMinimize" type="bool">True</property>
  63. <property name="TitleUrl" type="string">/sites/training/Lists/Employee trainings</property>
  64. <property name="CatalogIconImageUrl" type="string" />
  65. <property name="DataSourcesString" type="string" />
  66. <property name="GhostedXslLink" type="string">main.xsl</property>
  67. <property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_DEFAULTVIEW</property>
  68. <property name="DisplayName" type="string">All Items</property>
  69. <property name="UseSQLDataSourcePaging" type="bool">True</property>
  70. <property name="Width" type="string" />
  71. <property name="ExportMode" type="exportmode">All</property>
  72. <property name="XslLink" type="string" null="true" />
  73. <property name="ViewContentTypeId" type="string">0x</property>
  74. <property name="HelpUrl" type="string" />
  75. <property name="XmlDefinition" type="string">&lt;View Name="{DDA5E2C8-292F-4D36-B7DA-F8EDAC7ADC6D}" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayName="All Items" Url="/sites/training/Lists/Employee trainings/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/generic.png"&gt;&lt;Query&gt;&lt;OrderBy&gt;&lt;FieldRef Name="ID"/&gt;&lt;/OrderBy&gt;&lt;/Query&gt;&lt;ViewFields&gt;&lt;FieldRef Name="Attachments"/&gt;&lt;FieldRef Name="LinkTitle"/&gt;&lt;/ViewFields&gt;&lt;RowLimit Paged="TRUE"&gt;30&lt;/RowLimit&gt;&lt;Toolbar Type="Standard"/&gt;&lt;/View&gt;</property>
  76. <property name="Default" type="string">TRUE</property>
  77. <property name="TitleIconImageUrl" type="string" />
  78. <property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
  79. <property name="SelectParameters" type="string" />
  80. </properties>
  81. </data>
  82. </webPart>
  83. </webParts>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.