Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm in the process of creating my first App for SharePoint 2013 and after following this tutorial (using Visual Studio 2012), I now wish to create a custom XSLT file and apply it to my TestCustomList's default view. I have changed the Schema.xml file to read:

...
  <View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DefaultView="TRUE" ... Url="AllItems.aspx">
    <XslLink Default="TRUE">custom.xsl</XslLink>
...

But I do not know where to put my newly created custom.xsl... I don't see how anything in my project relates to the _layouts directory on the server.

share|improve this question

1 Answer 1

Your xsl file should be located here:

c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\XSL\

To map your xsl file to this folder you need to create Sharepoint Mapped Folder.

Here is explanation how to do that.

share|improve this answer
    
Thanks, but step 3 says to create a SharePoint 2013 Visual Web Part but I am creating an App for SharePoint 2013 (under Visual C# > Office/SharePoint > Apps) are there instructions for an App? –  Corin May 8 '13 at 5:30
    
Also, the menu item in step 6 doesn't exist (I'm guessing that's because the project type is different?) –  Corin May 8 '13 at 5:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.