Hello,
How is it possible to add a XSLT List View Web Part into a Page Layout? I want to do this basically so that instead of adding the web parts I want to multiple pages, I can just apply the specific page layout with the web part attached so its automatically added.
- Current scenario I am doing is like this:
- Add a Page / Publishing Page.
- Insert a List View Web Part into that Page and save.
- Access SPD 2013 and extract the declaration for that web part.
- Go to Design Manager in SP2013 Browser and add a Page Layout.
- Edit the Page Layout and generate "Custom ASP.NET Markup" for inserting into HTML the code extracted for the declaration of the web part.
- Go to SPD 2013 and access and edit the created Page Layout HTML file.
- Insert the generated code snippet inside the Content Placeholder Main markup on the HTML file.
However, this does not work properly! I get the error "SharePoint can't parse this file, most likely because of an incorrectly formatted SharePoint snippet. The markup at the following location is causing problems. Edit the markup manually to fix it, or replace it with a new snippet from the Snippet Gallery. {Type of error, location of error}. Occurred at: {Time}."
There must be something wrong with the process I am doing. I can't find any resource on the internet and I am stuck. Please help! Thank you!