Sharepoint 2010 Forum

 
Home » Forum » Sharepoint 2010       Ask a questionRSS Feeds

Customizing the Default

  Asked By: Maulik Kasana         Date: Dec 10, 2010      Category: Sharepoint 2010      Views: 123
 

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
_layouts/xsl).

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


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

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?


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:      

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].