Hi Glenn,
I’m wondering if SmallWiki can be used in the
following way:
- on server startup, a collection of objects is read in from a text
file and somehow available (possibly through an instance variable of a
subclass of SWKom?)
- a user can gain access to an object by adding a link to a page
(subclass of SWPage?) by the name of the object of interest (objects
are accessible by a string name)
- when a user then selects the object name on the calling page, a new
page will pop up based on the object
- the objects are not changeable, view only
as far as I understand everything you want to do is already there. You
load your objects (e.g. a Structure say a Page, a Resource, a Folder or
a subclass of any of those) and put them into the root folder of the
server. As every structure has a title (=string name) and is mapped
automatically to an url the objects are easily accessible. If you just
want to see those objects, you only allow view-actions to be used with
your structure.
Other questions
– How can multiple Wikis run on the same server?
Multiple instances of SWKom can run multiple servers on different ports.
– Can permissions be changed at the folder level or
are permissions
set up for the entire Wiki?
Users, Roles and Permissions are setup globally for the whole wiki,
however it is possible to redefine the roles in any structure (Page,
Folder, Resource).
As an example imagine two roles called 'student' and 'professor'. The
professor has all the permissions and the student has only the view
permissions by default. Now lets have a folder called 'student-data'
where the professor wants to leave notes about his students but they
should not be able to see it. What you do then is to remove all the
permission from the 'student'-role in that particular folder. Probably
the students want to setup their own home-page, so you might want to
create a folder 'student-hp' where the permission to edit and create
pages is added to the student-roles.
Btw, there is also the anonymous role that is used for all access to
SmallWiki where no authentication is given. This means that if you
restrict the permission of a particular role you have to take care that
you also restrict the anonymous role.
– Once a resource is uploaded to a page, how can it be
updated?
Just upload something new and it will replace the old upload. As
everything in SmallWiki this is versioned and you are able to go back
if necessary.
Cheers,
Lukas
--
Lukas Renggli
http://renggli.freezope.org