Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Friday, May 16 2008 @ 12:18 AM EDT
   

Modular/CSS-based Geeklog?

GeeklogI installed Geeklog quite recently (1.3.2) and really like it. I started playing around with the themes and decided to make my own, one that would be put CSS. However, soon after editing the .thtml files in layout/themeName/, I found that the templates were only used for some of the page building, and that lib-common.php was actually writing markup into the page as well.

This limits themes considerably; lib-common.php should extend the method of just pulling the layout files and inserting data into them. It should not be inserting any markup of its own.

I'm guessing that the move to a fully modular separation of presentation and content is planned for 1.4. If it's not, it should be! It would make theme creation a lot easier, and would probably also make code maintenance and alteration easier as well.

It wouldn't require a CSS theme to ship with it; the same table-based themes would work fine as long as all the HTML was confined to the layout subdirectories. If that happens, I'll certainly work on a pure CSS GeekLog (hooks for browser-detection should be put in the code too).

Anyway, that's meant as constructive criticism - it's a great application!

MLimburg: It's been a problem with GL for a while, as we've moved from a 100% backend generator to the beginning of templates. A fair amount of work would be required to move it across to full templates, so we've opted to focus on GL 1.4 for true template support. Infact, I already have a version working right now :)

Story Options

Modular/CSS-based Geeklog? | 4 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
PEAR::IT
Authored by: Jason on Friday, March 15 2002 @ 06:37 PM EST
Just a comment, I\'m using PEAR::IT for templates in a new project and its working great. If your interested catch me on IRC and I\'ll be more than happy to talk about how I\'m doing templates in this project.
I feel your pain
Authored by: Matty on Monday, March 18 2002 @ 07:19 AM EST
Of course I\'d prefer all html to be in the layout files, my primary wish right now is that

$block->set_var(\'layout_url\', $_CONF[\'layout_url\']);

is added to the end block function in the next release so block footer graphics display without modifying any core files or using absolute urls in the blockfooter.thtml. Assigning a .class (or perhaps 2 alternating classes ;)) to the comments themselves would be cool too.
Re: I feel your pain
Authored by: Dirk on Monday, March 18 2002 @ 11:18 PM EST
Matty, have a look at the CVS and your pain should ease ;-)

bye, Dirk
Re: I feel your pain
Authored by: Anonymous on Tuesday, March 19 2002 @ 07:32 AM EST
Thanks Dirk, I noticed that last night, you da man! :-)