locked
Is there any way to change the font color of an item in a list? RRS feed

  • Question

  • Hello,

    Let's say there are 2 colums in a link list that you display in the navigation pane.  One column is the link name and the other is the date.  In the list there are 25 links.  Is there a way to change the font color of the date for 10 of the 25 List items?
    Tuesday, March 17, 2009 5:46 AM

Answers

  • If you have SharePoint Designer 07, you can convert the Dataview to an XSLT Dataview. Then, right click on the column and select 'Conditional Formating'. Click the 'Create...' button, add in the parameters you want and then select the Font area to change the color.
    Tuesday, March 17, 2009 2:26 PM

All replies

  • You could do that using jQuery. On page load you would loop through all rows and change the formatting as defined in your question. If you want to see some examples of jQuery and SharePoint integration I'd suggest you took a look at the jQuery section on EndUserSharePoint.com (http://www.endusersharepoint.com/?cat=513)
    -- http://blog.mastykarz.nl
    Tuesday, March 17, 2009 7:18 AM
  • If you have SharePoint Designer 07, you can convert the Dataview to an XSLT Dataview. Then, right click on the column and select 'Conditional Formating'. Click the 'Create...' button, add in the parameters you want and then select the Font area to change the color.
    Tuesday, March 17, 2009 2:26 PM