|
NAMEMojoMojo - A Wiki with a treeSYNOPSIS# Set up database (see mojomojo.conf first) ./script/mojomojo_spawn_db.pl # Standalone mode ./script/mojomo_server.pl # In apache conf <Location /mojomojo> SetHandler perl-script PerlHandler MojoMojo </Location> DESCRIPTIONMojomojo is a content management system, borrowing many concepts from wikis and blogs. It allows you to maintain a full tree-structure of pages, and to interlink them in various ways. It has full version support, so you can always go back to a previous version and see what's changed with an easy diff system. There are also a some of useful features like live AJAX preview while editing, tagging, built-in fulltext search, image galleries, and RSS feeds for every wiki page.To find out more about how you can use MojoMojo, please visit <http://mojomojo.org/> or read the installation instructions in MojoMojo::Installation to try it out yourself. METHODSprepareAccommodate a forcing of SSL if needed in a reverse proxy setup.ajaxReturn whether the request is an AJAX one (used by the live preview, for example), as opposed to a rgular request (such as one used to view a page).expand_wikilinkProxy method for the MojoMojo::Formatter::Wiki expand_wikilink method.wikiwordFormat a wikiword as a link or as a wanted page, as appropriate.prefFind or create a preference key. Update it if a value is passed, then return the current setting.pref_cachedGet preference key/value from cache if possible.fixwClean up wiki words: replace spaces with underscores and remove non-\w, / and . characters.tzConvert timezoneprepare_actionProvide "No DB" message when one needs to spawn the db (script/mojomojo_spawn.pl).prepare_pathWe override this method to work around some of Catalyst's assumptions about dispatching. Since MojoMojo supports page namespaces (e.g. "/parent_page/child_page"), with page paths that always start with "/", we strip the trailing slash from "$c->req->base". Also, since MojoMojo indicates actions by appending a ".$action" to the path (e.g. "/parent_page/child_page.edit"), we remove the page path and save it in "$c->stash->{path}" and reset "$c->req->path" to $action. We save the original URI in "$c->stash->{pre_hacked_uri}".base_uriReturn "$c->req->base" as an URI object.uri_forOverride "$c->uri_for" to append path, if a relative path is used.uri_for_static"/static/" has been remapped to "/.static/"._cleanup_pathLowercase the path and remove any double-slashes._expand_path_elementsGenerate all the intermediary paths to "/path/to/a/page", starting from "/" and ending with the complete path:/ /path /path/to /path/to/a /path/to/a/page get_permissions_dataPermissions are checked prior to most actions, including "view" if that is turned on in the configuration. The permission system works as follows:
user_role_idsGet the list of role ids for a user.check_permissionsCheck user permissions for a path.check_view_permissionCheck if a user can view a path.SUPPORT
AUTHORSMarcus Ramberg "marcus@nordaaker.com"David Naughton "naughton@umn.edu" Andy Grundman "andy@hybridized.org" Jonathan Rockway "jrockway@jrockway.us" A number of other contributors over the years: https://www.ohloh.net/p/mojomojo/contributors COPYRIGHTUnless explicitly stated otherwise, all modules and scripts in this distribution are: Copyright 2005-2010, Marcus RambergLICENSEYou may distribute this code under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |