the newest version of xowiki contains the following features
- Optional controls for adding content to dig and del.icio.us (developed together with Jon Griffin), configured via package parameters
with_delicious
and with_digg
- Support for ordering in xowiki:
When postgres is configured with support for ltree (postgres contrib package, part of postgres source distributions), the following features are available- Additional (optional) attribute
page_order
for all kind of XoWiki pages - Content of page_order can be section numbers like e.g. 1, 1.1, 1.2, 1.2.1, 1.2.2, 1.3, etc.
- pages with page_order can be presented in the specified order.
- Usage via template file
- The new template file
view-book.{adp,tcl}
presents a table of content on left side and the "book" pages on right side. - The table of content is rendered with YUI treeview (needs ajaxhelper to be installed on the file-system).
- view-book provides a progress bar with a next and previous button to click through the content.
- The template file view-book is activated via the package parameter
template_file
- See the screenshot of the xowiki documentation based on the book includelet: http://media.wu-wien.ac.at/download/xowiki-doc/xowiki-book-template.png
- Usage via includelet
- New prototype page book.page: This page can be used to present the whole book content in one large page with a table of contents on the left side.
- According to the access control rights, every section has a small edit button to edit it separately.
- With the appropriate security policy settings, different authors may only edit different sections.
- One can use this prototype page conveniantly by setting the package parameter
index_page
to "book". - See the screenshot of the xowiki documentation based on the book includelet: http://media.wu-wien.ac.at/download/xowiki-doc/xowiki-book.png
Background info: ltree is an optional package (like tsearch2) for postres under a BSD license and provides efficient access to hierarchical data (for details, see:
http://www.sai.msu.su/~megera/postgres/gist/ltree/). Ltree is part of the standard postgres source tree (like tsearch2). I am pretty sure, similar effects could be achieved as well with the treesortkeys used in many places in OpenACS. However, i am no expert on treesortkeys, and providing access to its functionality in a user friendly manner requires some work.
Similar things can be achieved as well via categories. The advantage of the page_order is that it is part of the instance records. Ltree provides very fast and powerful index and query mechanisms (see ltree documentation). If pages are exported, the page_order is exported as well without and additional work. So, "books" can be easily exported and imported.
xowiki is designed to work as well without ltree. If ltree is not installed, the functionality based page_order won't be available in these cases. When ltree is installed later, a function named ::xowiki::add_ltree_order_column
can be used outside the normal upgrade management.