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 need to modify the structure of the HTML rendered by the XsltListViewWebPart in the default AllItems.aspx SharePoint page. Specifically, I need to separate the column headings into its own table and the data cells into its own table.

I have customized an Empty Data View web part before and it was very simple since the structure of the table was in the code of the page. For the XsltListViewWebPart the table structure seems to be hidden somewhere else.

How can I change the table structure of this XLWP?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

This wabpart uses XSL transformation. Basically, it uses main.xsl file to render HTML. You can find this file into 14 folder. But I donot recomend to do changes in this file. The best solution is to coppy main.xsl, rename it and then add reference to a new file in the webpart property or list definition. Also you can use SharePoint designer to make changes. In this case xsl for transformation includes into webpart markup.

share|improve this answer
add comment

Actually I have a web part exactly for this need, called Item Lister Web Part. You can check that out.

Have a nice day...

share|improve this answer
add comment

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.