Thomas Wittek > Konstrukt > Konstrukt::Plugin::guestbook

Download:
konstrukt/Konstrukt-0.5-beta13.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

NAME ^

Konstrukt::Plugin::guestbook - Konstrukt guestbook

SYNOPSIS ^

        <& guestbook / &>

DESCRIPTION ^

This Konstrukt Plug-In provides "easy to implement" guestbook-facilities for your website.

You may simply integrate it by putting

        <& guestbook / &>

somewhere in your website.

CONFIGURATION ^

You may do some configuration in your konstrukt.settings to let the plugin know where to get its data and which layout to use. Defaults:

        #use a captcha to prevent spam
        guestbook/use_captcha          1 #you have to put <& captcha / &> inside your add-template

        #backend
        guestbook/backend              DBI

See the documentation of the backend modules (e.g. "CONFIGURATION" in Konstrukt::Plugin::guestbook::DBI) for their configuration.

        #Layout
        guestbook/template_path        /templates/guestbook/
        guestbook/entries_per_page     10
        #administration
        guestbook/userlevel_admin      3

METHODS ^

execute_again

Yes, this plugin may return dynamic nodes (i.e. template nodes).

init

Initializes this object. Sets $self->{backend} and $self->{template_path}layout/. init will be called by the constructor.

install

Installs the templates.

Parameters:

none

prepare

Prepare method

Parameters:

execute

All the work is done in the execute step.

Parameters:

add_entry_show

Displays the form to add an entry.

add_entry

Takes the HTTP form input and adds a new guestbook entry.

Displays a confirmation of the successful addition or error messages otherwise.

delete_entry_show

Displays the confirmation form to delete an entry.

delete_entry

Deletes the specified entry.

Displays a confirmation of the successful removal or error messages otherwise.

show_entries

Shows the guestbook entries.

AUTHOR ^

Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.

This document is free software. It is distributed under the same terms as Perl itself.

SEE ALSO ^

Konstrukt::Plugin::guestbook::DBI, Konstrukt::Plugin, Konstrukt