The easy Weblog and Wiki Software
[ start | index | login ]
start > phobia > ideas > Theme layout

Theme layout

Created by phobia. Last edited by phobia, 4 years and 24 days ago. Viewed 255 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
Themes should be able to control page layout. If I want to modify my site to look more like Confluence, with some metadata in the "content" column, I should not need to edit JSPs.

janit0r and I whiteboarded our dream layout system for SnipSnap. Themese would include a "layout" snip that defined the entire page. Perhaps later there could be multiple page layouts (edit snip, front page, etc.)

A layout snip would simply define panes via macros. I imagine the today's layout would look like:

{site-masthead:logo=snipsnap.gif}
{site-toolbar:registerLink=no|loginLink=yes}
{div:class=columnOne}
 {snip-title} // "snip" macros default to current snip context
 {snip-toolbar}
 {snip-content}
 {snip-comments} // renders self-link with querystring parameter to enable comment display
{div}
{div:class=columnTwo}
 {!./sidebar} // this referencing doesn't work yet
{div}

This would, however, render the current one-layer Radeox caching mechanism useless. This could be replaced by {snip-content} making a sub-call to Radeox, allowing it to cache (probably the cleanest way to implement this macro, anyway) and doing likewise with the include (bang) filter.

one comment (by phobia) | post comment

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13712 Snips. Installed 6 years and 8 days ago

Logged in Users: (2)
… and 11 Guests.

snipsnap-changed for older changes.

< July 2008 >
SunMonTueWedThuFriSat
12345
6789101112
13141516171819
20212223242526
2728293031

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST