Share » Forums » Setup & design » How to limit which sitedesigns to...

How to limit which sitedesigns to choose from on preview?

How to limit which sitedesigns to choose from on preview?

Thursday 30 June 2005 6:45:17 am - 3 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu