Cedric Gaspoz wrote:
Ok, here's what to do:Hi,We are working in multi SG hosting and I would like to add some functions in the "TOOL" menu for some SG respective for some groups in a SG.
1. what is shown in the tools menu is decided in the snippet :
hklc_adminsite_tools / <https://cms.polarmedia.no/nadmin/rcs/browse/?type=snippetdir&id=74&ts=1043336343&previewbase=http%3A%2F%2F>menu <https://cms.polarmedia.no/nadmin/rcs/browse/?ts=1043336362&type=snippetdir&id=75&previewbase=http://> / 8,tools,Tools <https://cms.polarmedia.no/nadmin/rcs/browse/?ts=1043336362&type=snippetdir&id=76&previewbase=http://> / tools <https://cms.polarmedia.no/nadmin/rcs/browse/?ts=1043336362&type=snippet&id=275&previewbase=http%3A%2F%2F>
(for nadmin that is - for aegir replace hklc with aegir).
To decide something based on sitegroup, you may add code like this:
$myperson = mgd_get_person($mgd_login[uid]);
if ($myperson->sitegroup == 2 ) {
echo $ta . showimage("W") . $tb .
"<a href=\"".
$mgdroot .
"/rcs/nu/".$tools->name."/\" target=\"editing\">$tools->name".
$tc;
}
or you could find a way to list all the snippetdirs of the sitegroup and say that the snippets below the snippetdir "tools_menu" should be added.
$snippetdir = mgd_get_snippetdir_by_name("tools_menu"); // not tested
// the rest is in use :)
if ( $tools = mgd_list_snippets($snippetdir->id)) while ($tools->fetch()) {
echo $ta . showimage("W") . $tb .
"<a href=\"".
$mgdroot .
"/rcs/nu/".$tools->name."/\" target=\"editing\">$tools->name".
$tc; }
I suggest we add the last as a functionality in Aegir. Bergie, Solt, what do you think?
tarjei
Is there a possibility to do it?
Thanks
Cedric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
