I think I've done what you're looking for on my site
(http://raibledesigns.com). If you click on the categories, the theme
changes. This is done by setting a body class and then using CSS to
change the header and colors. Here's the relevant part of my template:
#if ($model.weblogCategory)
#set( $chosenCat = $model.weblogCategory.name )
#elseif ($model.permalink)
#set( $chosenCat = $model.weblogEntry.category.name )
#end
#if ( $chosenCat )
#set( $chosenCat = $stringUtils.replace($chosenCat, " ", "").toLowerCase() )
#set( $chosenCat = $stringUtils.replace($chosenCat, "/", "") )
#end
<body id="page-#showPageName()"#if($chosenCat) class="$chosenCat"#end>
Hope this helps,
Matt
On Mon, Mar 31, 2008 at 3:36 PM, slowhome <[EMAIL PROTECTED]> wrote:
>
>
> Is there a way to display a custom masthead that sits above all entries when
> viewing blog by category?
>
> For instance if I was viewing just entries in the "Java" category it would
> look something like this:
>
> =========
> Java Masthead
> =========
>
> *Java Entry
>
> *Java Entry
>
> *Java Entry
>
> *Java Entry
>
>
>
>
> I imagine the code would be something like this:
>
> if category ="java" display "Java Masthead" or else display nothing.
>
>
> I'm sure this is pretty easy but I wasn't able to find anything after doing
> a search here. I am using Roller 3.1
>
> Thanks in advance for any help.
> --
> View this message in context:
> http://www.nabble.com/Category-Mastheads--tp16399070s12275p16399070.html
> Sent from the Roller - User mailing list archive at Nabble.com.
>
>
--
http://raibledesigns.com