Multi site install : Hide other Siteaccess list ?

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:11:32
Script start
Timing: Jan 18 2025 19:11:32
Module start 'layout'
Timing: Jan 18 2025 19:11:32
Module start 'content'
Timing: Jan 18 2025 19:11:33
Module end 'content'
Timing: Jan 18 2025 19:11:33
Script end

Main resources:

Total runtime1.1047 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 589.4766152.6406
Module start 'layout' 0.00900.0093 742.117239.4766
Module start 'content' 0.01831.0849 781.5938531.7813
Module end 'content' 1.10320.0015 1,313.375012.1250
Script end 1.1047  1,325.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3940160.0003
Check MTime0.00240.2203160.0002
Mysql Total
Database connection0.00160.147710.0016
Mysqli_queries1.038894.0315540.0192
Looping result0.00050.0485520.0000
Template Total1.029693.220.5148
Template load0.00580.522920.0029
Template processing1.023892.676320.5119
Template load and register function0.00010.009210.0001
states
state_id_array0.00450.411710.0045
state_identifier_array0.00430.393620.0022
Override
Cache load0.00540.4846190.0003
Sytem overhead
Fetch class attribute can translate value0.00160.141020.0008
Fetch class attribute name0.00160.141040.0004
XML
Image XML parsing0.00110.100920.0006
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00110.0992230.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs