James Kanjo wrote on 31 Jan 2010 10:19
I've noticed how Pieter is slowly moving some functionalities from the Admin Manager to direct wiki pages (for example, why “Enable Per-Page Rating” from the Site Manager, when you can enable it by adding a Rating Module).
The autonumbering feature is very powerful. It allows for a non-confliction of UNIX pagenames (you won't have problems such as trying to overwrite an existing page, as each new page is autonumbered consecutively). In addition, if two people try to create a new page at the same time, there is no confliction of page edits.
Proposed syntax:
[[module NewPage autonumber="true"]]
New page's URL:
http://yoursite.wikidot.com/category:page/edit/true/autonumber/true/title/My%20New%20Page
Engine behaviour:
When you press "Save", the Wikidot Javascript will recognise /autonumber/true in the URL, and will send this information to the Wikidot engine. The Wikidot engine then identifies the next consecutive number page name in the specified category, and saves the page with that number.
What then, happens when you create a page in this category but do not use the provided NewPage module that you have posted the code for?
If you'd expect those pages to be autonumbered as well, the NewPage module needs to somehow set that setting to be permanent in the same way that the site manager currently does.
If not, you'll end up with some pages autonumbered, and others not, with no way of knowing which categories have this mix of lettered/numbered pages. (currently, there is a list in the "autonumbering" section of the site manager for these categories)
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
I like the general idea of moving admin functions into wiki space ("useruser space" or something) but this one needs IMO to remain an admin function because there are several ways of creating pages and it makes no sense to let some of these avoid autonumbering.
To put this another way, can you find a use case a mix of NewPage with and without autonumbering in the same category? If not, then autonumbering must be defined per-category with no escape mechanism.
Nice try, anyhow, and any ideas to simplify site administration are welcome.
Portfolio