Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

how to add summery link webpart in xml format on to the page

$
0
0

Hi,

I need to add summary llink webpart on to the page using this format :

<AllUsersWebPart WebPartZoneID="WebPartZone1" WebPartOrder="0">
        <![CDATA[
                      <webParts>
                         <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
                            <metaData>
                               <type name="Microsoft.SharePoint.Publishing.SummaryLink, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
                            </metaData>
                            <data>
                               <properties>
                                  <property name="Title" type="string">"Summary Links"</property>
                                  <property name="Description" type="string">"Summary Links"</property>
                                  <property name="ChromeType" type="chrometype">None</property>
                               </properties>
                            </data>
                         </webPart>
                      </webParts>
                   ]]>
      </AllUsersWebPart>

but here i am not sure about all the required property which is mandatory while rendering it on to the page and also i am not aware wheather the above one is right format or not and also getting an error "add webpat as a safecontrol" i have added it into our web.config file as well but the error is still same.

Any help appreciated .

Thanks


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>