Gantry::Control::C::Pages - Page based control adminstration.


Gantry documentation  | view source Contained in the Gantry distribution.

Index


NAME

Top

Gantry::Control::C::Pages - Page based control adminstration.

SYNOPSIS

Top

  use Gantry::Control::C::Pages;

DESCRIPTION

Top

This module is the frontend for the Gantry::Control::Authz::PageBased authentication handler. One would specify pages as well as the permissions with this frontend module.

APACHE

Top

Sample Apache configuration.

  <Location /admin/pages >
    SetHandler  perl-script

    PerlSetVar  title   "Page Accesst: "

    PerlSetVar  dbconn  "dbi:Pg:dbname=..."
    PerlSetVar  dbuser  "<database_username>"
    PerlSetVar  dbpass  "<database_password>"
    PerlSetVar  dbcommit  off

    PerlHandler Gantry::Control::C::Pages
  </Location>

DATABASE

Top

This is the auth_pages table that is used by this module. It also uses the auth_users and auth_groups tables for reference.

  create table "auth_pages" (
    "id"            int4 default nextval('auth_pages_seq'::text) NOT NULL,
    "user_perm"     int4,
    "group_perm"    int4,
    "world_perm"    int4,
    "owner_id"      int4,
    "group_id"      int4,
    "uri"           varchar,
    "title"         varchar
  );

METHODS

Top

add_page

Gantry::Plugins::CRUD callback.

delete_page

Gantry::Plugins::CRUD callback.

do_add

Called by Gantry handler.

do_delete

Called by Gantry handler.

do_edit

Called by Gantry handler.

do_main

Called by Gantry handler.

edit_page

Gantry::Plugins::CRUD callback.

page_form

The form description.

redirect_to_main

Gantry::Plugins::CRUD callback.

There is also one method designed to be called by template wrappers.

Returns site nav links and their text.

SEE ALSO

Top

Gantry::Control(3), Gantry::Control::C::Users(3), Gantry::Control::C::Groups(3), Gantry::Control::C::Authz::PageBased(3)

LIMITATIONS

Top

AUTHOR

Top

Tim Keefer <tkeefer@gmail.com> Nicholas Studt <nstudt@angrydwarf.org>

COPYRIGHT

Top


Gantry documentation  | view source Contained in the Gantry distribution.