Using Roller 4.x, I'm using something like:
#if($model.tags.size() > 0)
   #set($title = "")
   #foreach($tag in $model.tags)
       #set($title = "$title$tag ")
   #end
   <title>$title: $model.weblog.name</title>
#elseif($model.weblogCategory)
   <title>$model.weblogCategory.name : $model.weblog.name</title>
#else
   <title>$model.weblog.name</title>
#end

Maybe you could add another condition using:
#if($model.weblogEntry)
   <title>$model.weblogEntry.title</title>
#end

This isn't the cleaner way to do this, but it works and prevents you to create additional templates just to change a page title.

Hope this works on 3.x.

--
Vivien Barousse

Rocco Scappatura wrote:
$model.weblogEntry.title works but I have only 3 templates in my theme:

- Weblog
- _day
- _css

And putting:

<title>$model.weblogEntry.title</title>

in Weblog templlate I get obviously that the variable isn't substituted
when the page in not an entry page.

Maybe I have to use a separate and customized template fro permalink. But
I have no idea on how I could link it to the rest of the them.

Someone could give me some hints?

Thanks,

rocsca

Reply via email to