Answered by:
Look and feel of Lists

>
Question
-
How do you change the look and feel of Lists, so that they take on the color/styles of the Master Page?
For example, my sites are all displayed in the BlackBand.master style, but my lists all show up as the default blue color!
Thanks
I hear and I forget. I see and I remember. I do and I understand.Friday, December 19, 2008 9:51 PM
Answers
-
I have to agree with BlueScreenOfDeath.
For certain functionality you have to change schema.xml, but I prefer to create Custom List in Visual Studio (List Definition solution) and then play with schema.xml. My recomendation was not to play with schema.xml of out of the box lists. If you create your own (from scratch or based on existing one) ok.
Let's go back to layout. For layout I think is much easier to use sharepoint designer. With dataview web part you can change how your list will be displayed so you can create your on views with custom html. I think it's easier then changing schema.xml, and much safer. When You are happy you can save your list as template and get reusable list template (this is workaround for BlueScreenOfDeath advice - "For instance, if you'd like to change the way that a list is structured you will need to modify the schema.xml because Sharepoint uses tables for structuring. If you'd like different views for lists that will be applied everytime you build that list")
If you want to change only visual aspect (colors, fonts, background images) then css is enough. You can open Sharepoint designer, then in _themes folder of your site you find your theme folder and then open theme.css file. Here you can change colors and stuff.
For instance:
1 .ms-toolbar-togglebutton-on {<BR> border:1 solid 2 #1c418c;<BR> background-color: 3 #fffacc;<BR>}<BR>table.ms-toolbar, table.ms-viewtoolbar {<BR> 4 background-image: url("toolgrad_simple.gif");<BR> 5 background-color:#dde4f4;<BR>}<BR>table.ms-toolbar {<BR> border: 1px 6 solid #bad6dd;<BR>}<BR>table.ms-viewtoolbar {<BR> 7 border-top:none;<BR> border-bottom:none;<BR>}<BR>.ms-listheader 8 {<BR> color: #4f79cc;<BR> background-color: 9 #a9cbd3;<BR>}<BR>.ms-menutoolbar {<BR> border:solid 1px 10 #BADBE8;<BR> border-bottom:solid 1px #839aa3;<BR> 11 background-color:#DDE4F4;<BR> background-image: 12 url("listheadergrad_simple.gif");<BR>}<BR>.ms-menutoolbar 13 td{<BR>border-top:solid 1px #fff;<BR>border-bottom:solid 1px 14 #eaf3ff;<BR>}<BR>.ms-menutoolbar td a {<BR> color: 15 #002672;<BR>}<BR>.ms-listheaderlabel {<BR> color: #000;<BR>} - Proposed as answer by Chad Kapatch Tuesday, December 30, 2008 3:34 AM
- Marked as answer by Mike Walsh FIN Friday, February 6, 2009 6:03 AM
Wednesday, December 24, 2008 12:39 PM
All replies
-
You will have to go to schema.xml i.e. the definition of the list in layouts folder and see what modifications u can make
________________________________________ Gautham S Pai [MCAD]Saturday, December 20, 2008 3:29 AM -
How does it manifests?
Do you have custom view made in Sharepoint Designer or this is happening in AllItems.aspx page of your list?
Does only list show in blue and the rest of the page (navigation, menu, quick lunch) is black, or whole page is in default blue style?
If it affects whole page, maybe you should pen it in Sharepoint designer and check what master page does it relies on.
If this is custom page made in Sharepoint designer you should open it in back in Sharepoint designer and check attached stylesheets.
Saturday, December 20, 2008 4:11 PM -
The whole page is in black/grey, with only the lists displaying in the blue color.
Where do I look in SharePoint Designer to change it?
Thanks
I hear and I forget. I see and I remember. I do and I understand.Monday, December 22, 2008 5:34 PM -
Hi all,
You can make changes to the look and feel of any list in one of the following ways:
1) Change the schema.xml file to modify an existing view of the list or add a view to the list, this will give you the view every time you create the list. The schema.xml file is located on the server in which sharepoint is installed on. Be careful however, you can also make an error in this file which will cause every page that has that list on it fail.
2) Add a .aspx page to the list folder, this will be a one time page for the list and you can customize the surronding elements for the list.
3) Change the theme (ie colors, etc) to change the lists look.
Monday, December 22, 2008 7:54 PM -
BlueScreenOfDeath said:
2) Add a .aspx page to the list folder, this will be a one time page for the list and you can customize the surronding elements for the list.
How do you do this??? Create a new, blank .aspx file in SharePoint Designer?
I hear and I forget. I see and I remember. I do and I understand.Monday, December 22, 2008 8:26 PM -
Yes, then you can add a sharepoint list view (new, edit, view) which will render the actual list. But you can add surronding elements, such as headers, pictures, text, etc. to the aspx page.
This should help:
http://office.microsoft.com/en-us/sharepointdesigner/HA101191111033.aspx
Monday, December 22, 2008 8:57 PM -
I think you should ignore advise changing schema.xml, because that's the wrong way. Everything you need for look and feel of your list can be set using css. For example New, Actions and Setting menu of you list is using ms-menutoolbar and ms-toolbar classes. It should take class definitions from theme css file which is defined in master page.
In your case something went wrong. It looks like either someone has played with schema.xml or someone edited this page in sharepoint designer and customized css.
All in all it shouldn't behave as it behaves in your case.Tuesday, December 23, 2008 10:03 AM -
But that will change will the look and feel of all lists..!!
What if i want to maintain a different look and feel for each list..!!Tuesday, December 23, 2008 10:08 AM -
Sharepoint Designer DataView web part. Here you can edit xslt and change css styles of your lists without touching the schema.xml fileTuesday, December 23, 2008 10:30 AM
-
So to change the look and feel for ALL LISTS, you can just change the css style in SD? Where at? Is it still necessary to create a new aspx page?
I hear and I forget. I see and I remember. I do and I understand.Tuesday, December 23, 2008 4:41 PM -
Drasko.Popovic said:This is not entirely true. For instance, if you'd like to change the way that a list is structured you will need to modify the schema.xml because Sharepoint uses tables for structuring. If you'd like different views for lists that will be applied everytime you build that list, you'd want to do this in the schema.xml. If you'd like the functionality to change, (ie: adding in jQuery or Javascript functionality) you can add this to the schema.xml that will applied to all your lists. Always ensure that you properly backup your files and you can accomplish a lot of customization that is not offered by simply editing css styles.
I think you should ignore advise changing schema.xml, because that's the wrong way. Everything you need for look and feel of your list can be set using css.
Yes it is true that css can do most of what your looking for but customization can go a lot deeper than css. Again it all depends on what your trying to accomplish.
To change the css, you can override the css in the core.css (Again on the server) or add the same css class names with different styles in your own aspx page (or in a CEWP on the same page).
Here's a link to help you out. http://www.heathersolomon.com/content/sp07cssreference.htmTuesday, December 23, 2008 9:18 PM -
I have to agree with BlueScreenOfDeath.
For certain functionality you have to change schema.xml, but I prefer to create Custom List in Visual Studio (List Definition solution) and then play with schema.xml. My recomendation was not to play with schema.xml of out of the box lists. If you create your own (from scratch or based on existing one) ok.
Let's go back to layout. For layout I think is much easier to use sharepoint designer. With dataview web part you can change how your list will be displayed so you can create your on views with custom html. I think it's easier then changing schema.xml, and much safer. When You are happy you can save your list as template and get reusable list template (this is workaround for BlueScreenOfDeath advice - "For instance, if you'd like to change the way that a list is structured you will need to modify the schema.xml because Sharepoint uses tables for structuring. If you'd like different views for lists that will be applied everytime you build that list")
If you want to change only visual aspect (colors, fonts, background images) then css is enough. You can open Sharepoint designer, then in _themes folder of your site you find your theme folder and then open theme.css file. Here you can change colors and stuff.
For instance:
1 .ms-toolbar-togglebutton-on {<BR> border:1 solid 2 #1c418c;<BR> background-color: 3 #fffacc;<BR>}<BR>table.ms-toolbar, table.ms-viewtoolbar {<BR> 4 background-image: url("toolgrad_simple.gif");<BR> 5 background-color:#dde4f4;<BR>}<BR>table.ms-toolbar {<BR> border: 1px 6 solid #bad6dd;<BR>}<BR>table.ms-viewtoolbar {<BR> 7 border-top:none;<BR> border-bottom:none;<BR>}<BR>.ms-listheader 8 {<BR> color: #4f79cc;<BR> background-color: 9 #a9cbd3;<BR>}<BR>.ms-menutoolbar {<BR> border:solid 1px 10 #BADBE8;<BR> border-bottom:solid 1px #839aa3;<BR> 11 background-color:#DDE4F4;<BR> background-image: 12 url("listheadergrad_simple.gif");<BR>}<BR>.ms-menutoolbar 13 td{<BR>border-top:solid 1px #fff;<BR>border-bottom:solid 1px 14 #eaf3ff;<BR>}<BR>.ms-menutoolbar td a {<BR> color: 15 #002672;<BR>}<BR>.ms-listheaderlabel {<BR> color: #000;<BR>} - Proposed as answer by Chad Kapatch Tuesday, December 30, 2008 3:34 AM
- Marked as answer by Mike Walsh FIN Friday, February 6, 2009 6:03 AM
Wednesday, December 24, 2008 12:39 PM -
So I opened SharePoint Designer, and the _themes folder - there isn't a folder in there named theme.css, only themes.inf
Do I have to create a new folder named theme.css?
Thanks!
I hear and I forget. I see and I remember. I do and I understand.Tuesday, December 30, 2008 3:55 PM