'ZoneTemplate' must be included within a parent element
i'm following along ms virtual academy found here:
https://mva.microsoft.com/en-us/training-courses/deep-dive-building-blocks-and-services-of-sharepoint-8933?l=anyv0fc3_804984382
the section in question can found @ around 24:45
i have place code has instructor , error: 'zonetemplate' must included within parent element, , 'xsltlistviewwebpart' not supported.
hi,
please follow steps below:
1. create sharepoint hosted app using visual studio.
2. add list in solution(don't change anything) using default template.
3. add following code placeholdermain control in default.aspx page.
<webpartpages:webpartzone runat="server" frametype="titlebaronly" id="webpartzone"> <zonetemplate> <webpartpages:xsltlistviewwebpart id="productswebpart" runat="server" listurl="lists/products" isincluded="true" nodefaultstyle="true" title="xsltlistview web part" pagetype="page_normalview" default="false" viewcontenttypeid="0x"> </webpartpages:xsltlistviewwebpart> </zonetemplate> </webpartpages:webpartzone>
4. f5 check if works.
if error still exists, please provide error massage further research.
best regards,
dennis
technet community support
please remember mark replies answers if help, , unmark answers if provide no help. if have feedback technet support, contact tnmff@microsoft.com.
SharePoint , Apps for Office and SharePoint > Developing Apps for SharePoint 2013
Comments
Post a Comment