How to limit which sitedesigns to choose from on preview?

Author Message

Nicklas Lundgren

Thursday 30 June 2005 6:45:17 am

Hi folks,

The new preview-function in the 3.6 admin interface is great. However - we are running a multisite environment. Thus, we define in settings/override/site.ini.append.php all the available siteaccesses on our server.

Now, when one of our customers select to preview a page from the admin-interface, he has the possibility to select ALL sitedesigns installed in our server! This is not good. We need to set the customers sitedesign as default, and hide all other sitedesigns.

We thought this would be done in the siteaccess/XYZ/content.ini.append.php, block [VersionView] with AvailableSiteDesignList[] and DefaultPreviewDesign.
But no such luck.....

Has anyone a better idea on how to limit the number of available sitedesigns on preview in a multisite-environment?

Any suggestions greatly appreciated!

Kind regards,
Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

Daniel Beyer

Thursday 30 June 2005 8:21:51 am

Hi Nicklas,

check ini-file site.ini. There you will find an array of siteaccess:

[SiteAccessSettings]
AvailableSiteAccessList[]
AvailableSiteAccessList[]=plain
AvailableSiteAccessList[]=admin

The list in the admin-preview is build from those settings.

Daniel Beyer
_________________________________
YMC AG
Kreuzlingen, Switzerland
web: www.ymc.ch
____________________________________

Peter Liscovius

Friday 08 July 2005 3:49:14 am

I have ez 3.6.0, but using the previewselection update in backend (shows translations and all siteaccess with radiobuttons) has no effect on the preview. It shows always the preview with backenddesign in the backend.

my settings/override/content.ini.append.php:

<?php /* #?ini charset="utf-8"?

[VersionView]
AvailableSiteDesignList[]
AvailableSiteDesignList[]=corporate
AvailableSiteDesignList[]=admin

# not used in 3.6? (see documentation)
#DefaultPreviewDesign=corporate
#AllowChangeButtons=enabled
#AllowVersionsButton=enabled

*/ ?>

and settings/override/site.ini.append.php:

...
[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]=cn
AvailableSiteAccessList[]=de
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=es
AvailableSiteAccessList[]=fr
AvailableSiteAccessList[]=il
AvailableSiteAccessList[]=jp
AvailableSiteAccessList[]=ru
AvailableSiteAccessList[]=administration
...

Any ideas what could be wrong?

Anja Lundin

Sunday 17 July 2005 11:42:30 pm

Hi!
Like Nicklas said we are running a multisite environment. And we must specify all siteaccesses available (AvailableSiteAccessList) in our installation on our server in override/site.ini.append.php.

But we want our customers to see only the design for their site and no other sites when they use the real preview function in 3.6.0. (Customer A should not be able to choose to see thier sites in customer B's design.) This is however not possible in a multisite environment as far as we can see. By the way, the documentation on the real preview is pretty poor.

The loop in content/view/versionview.tpl loops over $site_access_list. Instead it should be nice if the real preview choose items from content.ini AvailableSiteDesignList. Or if possible create a new list in an ini-file specified for the real preview and use this for the loop.

Is there a nice solution for this?

Kind regards,
Anja

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

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 19 2025 00:16:36
Script start
Timing: Jan 19 2025 00:16:36
Module start 'layout'
Timing: Jan 19 2025 00:16:36
Module start 'content'
Timing: Jan 19 2025 00:16:37
Module end 'content'
Timing: Jan 19 2025 00:16:37
Script end

Main resources:

Total runtime1.5664 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.2891152.6563
Module start 'layout' 0.00640.0046 741.945339.5078
Module start 'content' 0.01111.5539 781.4531639.8047
Module end 'content' 1.56490.0015 1,421.257812.0938
Script end 1.5664  1,433.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2013160.0002
Check MTime0.00120.0793160.0001
Mysql Total
Database connection0.00080.051510.0008
Mysqli_queries1.499895.7500640.0234
Looping result0.00090.0544620.0000
Template Total1.529997.720.7649
Template load0.00180.113620.0009
Template processing1.528197.552120.7640
Template load and register function0.00010.006810.0001
states
state_id_array0.00100.062210.0010
state_identifier_array0.00210.135320.0011
Override
Cache load0.00150.0974350.0000
Sytem overhead
Fetch class attribute can translate value0.00070.046540.0002
Fetch class attribute name0.00120.076170.0002
XML
Image XML parsing0.00470.302040.0012
class_abstraction
Instantiating content class attribute0.00000.002470.0000
General
dbfile0.00390.2499290.0001
String conversion0.00000.000540.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs