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.