Sharepoint 2010 Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint 2010       RSS Feeds

Customizing the Default

  Asked By: Maulik    Date: Dec 10    Category: Sharepoint 2010    Views: 815

I need to customize the XSL for an XsltListViewWebPart in SP2010. I can do so
in Designer, which adds an Xsl attribute to the web part markup. I want to
deploy this with a list in my feature (sandboxed solution, so I cannot modify

I tried creating a separate xsl file with the customized xsl, adding it to my
solution, and modifying the List instance as follows...

<List ...>
<View ...>
<XslLink Default="TRUE">SiteAssets/xsl/My.xsl</XslLink>

I cannot figure out how to modify the xsl of the default view. The XslLink does
not seem to work when the file lives in a document library. If I place the file
in _layouts/xsl and use simply "My.xsl" as the XslLink, it actually works. I
tried several other values to no avail.

So is this not possible in a Sandboxed solution? Are there alternate solutions
I should consider?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Customizing the Default Or get search suggestion and latest updates.