20040708 Thursday July 08, 2004

Roller Templates - could we use SiteMesh? One of the problems with Roller's "themes" is that you have to re-create the entire HTML structure of the page when you add new pages. While this can be simplified using includes, there's got to be a a better way. An ideal solution would be to allow each user to specify a "decorator" and then use SiteMesh to pull this decorator from the database and decorate a user's pages. This seems simple enough, but is it possible? Posted in Roller at Jul 08 2004, 12:39:31 PM MDT 4 Comments

Comments:

Matt, according to this page SiteMesh supports Velocity decorators: http://www.opensymphony.com/sitemesh/velocity-decorators.html That said, I can see a way to implement our own version (I think - 5 minute look). But then again it may be more reliable to use a tested 3rd party library.

Posted by Lance on July 09, 2004 at 11:19 AM MDT #

FYI Confluence supports space level decorators, so user can define a theme for pages. It uses Sitemsh and a custom mapper happily :-) Go for the Sitemesh based themes! Ara.

Posted by Ara Abrahamian on July 10, 2004 at 09:12 AM MDT #

[Trackback] Last week on the Roller-Dev mailing list I promised to post an example of the "decorator" support I'd built into Roller. This functionality was inspired by Matt's post about supporting SiteMesh decoration in Roller. While I don't know if this cou...

Posted by Vanity Foul on July 19, 2004 at 10:17 AM MDT #

fgj

Posted by 66.177.20.36 on January 31, 2005 at 02:02 PM MST #

Post a Comment:
  • HTML Syntax: Allowed