When you publish a channel in Luminis (via the Portal Admin interface) you can choose the channel name, and the channel title. The title is what is displayed to the users, so you can simply do a bit of HTML in this field like:
<font color="red">Email Inbox</font>
Save this change, and check out the channel title inside of Luminis. It should be red, as the HTML dictates. Alternately, you can set a span around this text, and reference an id or a class of your choosing in a stylesheet. You can even extend this to load a stylesheet under the condition that a user belongs to a certain role, enabling different colors for different users.
I did a little experimenting with this and it's not too difficult. In your skin's custom.xsl, for the custChannel template, add some code like this right after the params are all declared:
<xsl:variable name="PAchanclass">
<xsl:choose>
<xsl:when test="$chanTitle='Personal Announcements'">PACSSClass</xsl:when>
</xsl:choose>
</xsl:variable>
Then add
class="{$PAchanclass}"
to whatever HTML element you want to style (maybe a <tr> tag if you want to change the background of the title row, or maybe the <h1> tag if you want to change the text color). If the element already has a class, you can just add this class to it like
class="existingclass {$PAchanclass}"
Then change your skin's custom.css file to change the style of the PACSSClass class you've added.
Comments
Specific channel title color
As a matter of fact - I do.
When you publish a channel in Luminis (via the Portal Admin interface) you can choose the channel name, and the channel title. The title is what is displayed to the users, so you can simply do a bit of HTML in this field like:
Save this change, and check out the channel title inside of Luminis. It should be red, as the HTML dictates. Alternately, you can set a span around this text, and reference an id or a class of your choosing in a stylesheet. You can even extend this to load a stylesheet under the condition that a user belongs to a certain role, enabling different colors for different users.
Specific channel content color
I really wanted the content, not the title to change. This is a good tip however.
Thanks,
Jeremy
Quick Follow up
Is there a trick to changing the title of the personal announcements channels? I tried altering the font color and my code just shows up..
Thank you,
Jack
Changing Personal Announcements channel title color
I did a little experimenting with this and it's not too difficult. In your skin's custom.xsl, for the custChannel template, add some code like this right after the params are all declared:
<xsl:variable name="PAchanclass">
<xsl:choose>
<xsl:when test="$chanTitle='Personal Announcements'">PACSSClass</xsl:when>
</xsl:choose>
</xsl:variable>
Then add
class="{$PAchanclass}"to whatever HTML element you want to style (maybe a <tr> tag if you want to change the background of the title row, or maybe the <h1> tag if you want to change the text color). If the element already has a class, you can just add this class to it like
class="existingclass {$PAchanclass}"Then change your skin's custom.css file to change the style of the PACSSClass class you've added.
Awesome, I will try
Awesome, I will try that!
Thank you,
Jack
changing colour of tabs (and everything)
we introduced a method for changing the colour of tabs, where any tab with a special entry in its name has a style applied from the css
We also heavily modify the nested-tables.xsl file, which could be used to apply the same trick to any component of the layout.
I am tempted to ask why you would want to do this -
if the content of just one channel needs to be a sepecific colour then surely this should be applied as part of the content itself.
Derek