About Me

password: m{ this.domain/KlenWell }
wush.net login: klenwell / m{ wush.net/that.user }
my wikka site: http://klenwell.com/is/
blog: http://klenwell.com/press/

Wikka Development

Since upgrading to version 1.2, I've become more interested in exploring Wikka and developing some extension and features. More information on the development projects I'm working on can be found on my wiki.

I've redesigned my wiki site using the new theming system. The source code for that, and other wikka features I'm working on, can be found at my Google code site.

Additions and Enhancements

Admin-Only Installer
ReCaptcha Registration/Login Action
ReCaptcha Comment Form
Activity Summary Action
Wikka Base Action Class
Wikka Action as a Class
Redirect Action
Command Line Interface (esp. for cron jobs)

Bug Reports

MySQL 5.5 Incompatible with Install Script (Ticket 1049)


CodeContributions
Comments
Comment by BrianKoontz
2007-07-15 22:12:20
Thanks for the contribution, KlenWell. We are definitely looking at refactoring Wikka for the reasons you state. Personally, I'm looking at completely separating presentation from logic using a similar MVC approach, but I'd like to see even more presentation/logic separation. This might be a suitable interim solution...
Comment by KlenWell
2007-07-18 01:35:08
Happy to contribute. I was thinking of this as an interim solution myself. A more finished solution, perhaps, would look something like this:

// step 1
$this->prepare_page();
/* this method would basically run all but the last part of the script above, perhaps with each of the controller blocks above converted to its own method returning an html block or empty string -- for example: $this->_HTML['access_block'] = $this->showAccessBlock(); */

// step 2
$this->render_page($this->template_fname);
/* this would call a template file which would basically look like the $_HTML['page'] block above with the necessary changes if, for instance, the various blocks were defined as class properties:

$_HTML['page_template'] = <<<HTML

{$this->_HTML['page_start'] }
{$this->_HTML['no_access'] }

HTML;

The file name could be a config variable which would allow for much simpler customization. New tags could easily be inserted in the template. The template would just need to have the various HTML properties listed to display the appropriate blocks. */

My syntax probably doesn't completely conform to wikka conventions, but hopefully the idea makes sense. If I can be of further help or if you have any questions about the concept advanced here, please let me know.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki