I added a Custom SharePoint List to a page on our Sharepoint 2010 site. I opened
the page in edit mode by clicking on Site Actions -> Edit Page, then opened the
properties of the list by clicking the arrow next to the web part title and
clicking "Edit Web Part" from that context menu. From there, I clicked the "Edit
the current view" link underneath the "Selected View" dropdownlist.
On the "Edit View" page, I noticed that one of the options that can be set is
View Style (e.g.: Basic Table, Boxed, no labels, Boxed, Newsletter, etcetera). I
was hoping to be able to extend this list with my own custom style.
Specifically, in my list I have an attachment column, a title (a "Single line of
Text" type), and a type (a "Choice" type). I would like to create a style which
could be re-used across our entire portal that would allow users to create
different "Types" and have them display in my custom CSS, so that instead of:
<tr><td>Attachment</td><td>Title</td><td>Type</td></tr>
I would display something like:
<tr class="headerStyle">
<td colspan=2>Type</td>
</tr>
<tr>
<td>Attachment</td>
<td>Title</td>
</tr>
The above HTML is somewhat of an oversimplification, but perhaps you get the
idea - in this case I would like to be able to choose "Headline Style" from the
list of View Styles and have other lists formatted like the above.
Any ideas?