Page 1 of 1

Posted: Fri Jan 27, 2006 4:48 am
by judebert
When I made Ladybug, I wanted to do an all-CSS source-ordered layout. It worked, too. I had to get a little creative to account for the possibility that I might not have any particular side column, but I got it.

Ladybug also uses fixed-width sides with a fluid center. I'm not sure how they managed the full-height columns, but that's cool.

It's not that difficult to accomplish anything, with Smarty templating. You basically modify the index.tpl to link your stylesheets, then call the appropriate functions at the appropriate places.

There is no header function; we basically write our own and include the hompage link ($serendipityBaseURL) and the link titles ($head_title and $head_subtitle). You could include anything you like.

The left and right sidebars are created by calling {serendipity_printSidebar} with side="left" or side="right". Again, you could put that anywhere you liked.

The blog content is in the variable $CONTENT. That's #col_a in your example.

The footer (if any) is printed by calling {serendipity_hookPlugin hook="frontend_footer"}.

Tah-dah! The layout you've been looking for.

Incidentally, is this a variant of the Jello Mold layout? I haven't had the opportunity to examine that one in detail, but it sure looks interesting.

Posted: Thu Feb 02, 2006 4:33 pm
by carl_galloway
Hi all,

Could I seek clarification on a point in judeberts reply, the {serendipity_hookPlugin hook="frontend_footer"} I thought was a legacy of the past (support for older versions of s9y), if this isn't the case, how do I edit the content of footer so that this piece of code will print it. Is this achieved in admin suite somehow, or does this open a smarty template file, if so how is it named?

Cheers
Carl

Posted: Thu Feb 02, 2006 4:45 pm
by garvinhicking
That frontend_footer plugin is just used for emitting HTML code specified in Page Nugget plugins.

So not from a Smarty file, but coming from a plugin.

Regards,
Garvin

Posted: Thu Feb 02, 2006 5:00 pm
by carl_galloway
Ah, so if I want a footer for a theme design I still need to hard code the html, thanks Garvin.

Carl

Posted: Wed Feb 08, 2006 8:02 pm
by carl_galloway
Rob, great effort. I for one will be very keen to dissect your work and see what we can do with it.

Carl