Forums / Setup & design / Multi site install : Hide other Siteaccess list ?
H-Works Agency
Saturday 18 November 2006 7:24:37 am
Hi,
I am using EZP in a multiple siteaccess installation.
My problem is that no matter what admin siteaccess you are using, people see all other siteaccess for when creating a template override.
Say a website install uses "admin_siteA" and "siteA". When a person logs in admin_siteA he could create a template override for "admin_siteB, siteB, admin_siteC, siteC...etc".
How can i hide this siteaccess list ? And constrain this list to only to "admin + site" of each install ?
Then the list proposed for users of website A would only be : "admin_siteA, siteA". Then the list proposed for users of website B would only be : "admin_siteB, siteB"....and so on.
Thanx for any help.
EZP is Great
Kristof Coomans
Sunday 19 November 2006 2:10:03 am
Hello Martin
The site accesses in the popup menu come from site.ini [SiteAccessSettings].AvailableSiteAccessList (found in design/admin/templates/popupmenu/popup_menu.tpl )
If you modify those settings to your needs in each siteaccess and you make sure there are no global override settings for it, then I think it should work as you want.
Edit: after reading the manual ( http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/siteaccesssettings/availablesiteaccesslist ) and doing a grep on the source code I noticed that this is NOT a good solution, since AvailableSiteAccessList is used by access.php to match site accesses. Some templates of the admin interface should use http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/siteaccesssettings/relatedsiteaccesslist instead ( http://issues.ez.no/9461 ).
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org