Hi Jes,
> This is exactly what I needed. I even think I understand the syntax! :)
> Thank you.
No problem.
> Does anyone know of a source of documentation for the UI?
http://data.smd.net/cobalt.docs/
Especially:
http://data.smd.net/cobalt.docs/28066.0.Qube3_Sausalito_architecture.pdf
http://data.smd.net/cobalt.docs/DevGuide.pdf
http://data.smd.net/cobalt.docs/SSDK.pdf
In that order. The most useful one is the 1st one. The other two's are in way
too shallow where it really counts, don't give any hands on examples and are
actually plain dead wrong in certain areas. The DevGuide and SSDK were
officially handed out by Cobalt to broaden the acceptance of Sausalito and to
spark interest in generating "Sausalito aware applications". Whoever wrote
the manuals must have understood it as: "Ok, we don't tell them all our
secrets. And we put in enough false information so that anyone who attempts
to build something following the documentation goes nuts and rather asks *us*
to do it for them." ;o)
> I would like to make a menu item that only shows in the siteadmin, if a site
> has a ticked box in the site settings. Is that possible?
Yes. It is possible to make menu entries that only show up if the user logged
in to the GUI belongs to a certain group. If he's admin, or siteamin or
regular user for instance.
When you login as regular user you only see the "Personal Profile" tab. If you
login as site administrator, you see "Site Management" (which will only show
your site's settings) and the "Personal Profile" tab. Likewise, admin sees
everything.
The below menu entry would show up in "Personal Profile" if the user had the
capability to influence network services. This would be either the server
administrator, or an "extra admin" with the privilege to manage network
interfaces:
<item id="my_item_id"
label="My Lable"
description="Description of my lable."
url="/base/mydirectory/myfile.php">
<parent id="base_personalProfile" order="99">
<access require="networkServices"/>
</parent>
</item>
So in order to do what you want you'd have to extend your schema file with a
capability group of it's own. If the box is then ticked, you assign that
capability to the site administrator(s) of the group/site in question. You
will have to do some reading on how to do that. A good start for that are:
/usr/sausalito/schemas/base/vsite/vsite_caps.schema
/usr/sausalito/schemas/base/vsite/vsite.schema
--
With best regards,
Michael Stauber