Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mojomojo::prefs(3pm) [debian man page]

MojoMojo::Prefs(3pm)					User Contributed Perl Documentation				      MojoMojo::Prefs(3pm)

NAME
MojoMojo::Prefs - info on MojoMojo configurable preferences MojoMojo has a number of preferences that can be set in "Site settings" ("/.admin"). If values are not set in the database, they are read from mojomojo.conf, or default values are used. admins Login names of users with admin privileges. Default: 'admin'. name Site name. Default: 'MojoMojo'. main_formatter Specify which formatter to use as the main text formatter. The two options so far ares Markdown and Textile, with Markdown being default thanks to its versatility. For a comparison between the two, see <http://mojomojo.org/documentation/cheatsheet>. open_registration Controld whether user registration is available. Default: false. anonymous_user If set, users are allowed to post anonymously, and the edit will be shown with the username set in this option. restricted_user If set to a true value, normal users are restricted to editing pages inside their user space (the subpages of "/username"). Admin users can edit the entire site. Default: false. enforce_login If set, users are forced to login before performing any action. Default: false. check_permission_on_view If set, permissions to view are checked on view and search. Default: is false. create_allowed, delete_allowed, edit_allowed, view_allowed, attachment_allowed If true, anonymous users can create, delete, edit, view, and manipulate attachments, respectively. Defaults: true. entropy Random string used to generate secret keys for mail verification and such. disable_search If set, will use Google for site search. Currently highly recommended because KinoSearch consumes 100% CPU (see <http://github.com/marcusramberg/mojomojo/issues#issue/32>). use_captcha Control CAPTCHA for new user registration and anonymous edits. Default: false. theme Name of the active theme. Default: 'default'. cache_permission_data If set, permissions are cached. Default: true. default_lang Set the default language used for: o roles and the 'admin' username when creating the database o whenever no language is set via the UI and one is needed to display site text and navigation links, configure CAPTCHA, output language- specific plugin text etc. Currently supported values are: o "en" - English o "de" - German o "fr" - French o "ja" - Japanese o "no" - Norwegian o "ca" - Catalan o "es" - Spanish o "pl" - Polish o "ru" - Russian Default: "en" perl v5.14.2 2010-05-08 MojoMojo::Prefs(3pm)

Check Out this Related Man Page

MojoMojo::Formatter::File(3pm)				User Contributed Perl Documentation			    MojoMojo::Formatter::File(3pm)

NAME
MojoMojo::Formatter::File - format file as XHTML DESCRIPTION
This formatter will format the file argument as XHTML. Usage: {{file TYPE filename}} {{file Text uploads/Files/test.txt}} TYPE is a plugin present in Formatter/File/ directory. Currently there are only three: Pod, DocBook and Text The plugin TYPE format only the file which the extension match with 'can_format' method. Respectively pod, xml and txt for existing plugins. For security reasons the path of file must be include in 'whitelisting' directory. You can use path_to(DIR) to describe directory in mojomojo.conf: Just an example to view the test pod file t/var/files/test.pod : Add this to mojomojo.conf : <Formatter::Dir> prefix_url /myfiles whitelisting __path_to(t/var/files)__ </Formatter::Dir> To see the pod content formatted in xhtml, write in the text area: {{file Pod path_to(t/var/files)test.pod}} To show recursively all files of directory see script/util/dir2mojomojo.pl script. To test it: # start mojomojo ./script/mojomojo_server.pl # run dir2mojomojo script ./script/util/dir2mojomojo.pl --dir=~/dev/mojomojo/t/var/files/ --url=/myfiles Connect to http://server:3000/myfiles/ METHODS
format_content_order Format order can be 1-99. The File formatter runs on 92. format_content Calls the formatter. Takes a ref to the content as well as the context object. plugin Return the plugin to use with file attachment format Return the content formatted checkplugin Return 0 if plugin exist checkfile Directory must be include in whitelisting SEE ALSO
MojoMojo,Module::Pluggable::Ordered AUTHORS
Daniel Brosseau <dab@catapulse.org> LICENSE
This module is licensed under the same terms as Perl itself. perl v5.14.2 2010-04-07 MojoMojo::Formatter::File(3pm)
Man Page