Better HTML title handling in Roller


users, JRoller users, IBM folks, and everyone else, a little tweaking to you blog page can make your user's life easier, especially for (social) bookmarking.

Thanks to Dave Johnson, here's how to have your blog use the entry title if the page is a single-entry page (permalink typically) and weblog title/description otherwise:

Using Roller 2.x: "Preferences" -> "Templates" -> "Weblog" Edit -> locate the <title> </title> tags and replace them with the following:

#if ($pageModel.getWeblogEntry())
   <title>#showWebsiteTitle(): $pageModel.getWeblogEntry().title</title>
#else
   <title>#showWebsiteTitle(): #showWebsiteDescription()</title>
#end


Works great for me!
Ideally this will be baked into all Roller themes.

Comments:

Ah finally ! Good news for bookmarking ;-)

Posted by Franck on janvier 07, 2006 at 05:02 AM CET #

Post a Comment:
Comments are closed for this entry.
About

This blog has moved

Alexis Moussine-Pouchkine's Weblog

GlassFish - Stay Connected

Search

Archives
« avril 2014
lun.mar.mer.jeu.ven.sam.dim.
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today
Blogroll

No bookmarks in folder

News

No bookmarks in folder