Forums / Install & configuration / Cannot select site design in "Set up -> Template view"

Cannot select site design in "Set up -> Template view"

Author Message

Luis Cruz

Friday 29 October 2004 1:30:17 pm

Greetings all; I am running a multi-lingual setup (English and German) for my site. Initially, I setup the site designs as follows:
* en - English content
* de - German content
* cms - the admin interface

To do this, I used URI siteaccess in my settings/override/site.ini.append.php file. The configuration looked like this:

[SiteAccessSettings]
CheckValidity=false

MatchOrder=uri
AvailableSiteAccessList[]
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=de
AvailableSiteAccessList[]=cms

SiteAccessList[]
SiteAccessList[]=en
SiteAccessList[]=de
SiteAccessList[]=cms

I recently switched to using Host siteaccess for my installation; the configuration now looks like this:

[SiteAccessSettings]
CheckValidity=false

MatchOrder=host
HostMatchType=map
HostMatchMapItems[]
HostMatchMapItems[]=test.foo.com;en
HostMatchMapItems[]=test.foo.de;de
HostMatchMapItems[]=admin.foo.com;cms

SiteAccessList[]
SiteAccessList[]=en
SiteAccessList[]=de
SiteAccessList[]=cms

Everything worked fine, but I need to flush the caches in order to remove the /en, /de, etc. from the various menu items embedded in the existing templates/pages. Since the admin side was prefixed with /cms for the pages, I could not flush the cache via the normal web interface.

I flushed the cache using the command line '/<ezpath>/bin/shell/clearcache.sh --all'. Everything seemed fine; all the pages worked, and I could use all of the functionality of the admin. However, there is one problem I recently found.

When I go into "Set Up -> Templates" and edit /node/view/full.tpl, for example, I cannot choose en or de in the site design drop-down box. The only option in it is "admin".

Any idea what got nerfed in my configuration and how to fix it?

Thanks.

Balazs Halasy

Saturday 30 October 2004 6:59:23 am

Luis,

The problem is that eZ publish builds that dropdown list using the "AvailableSiteAccessList" array from within the configuration file. However, since you do not have such an array any more, it does not allow you to select the desired siteaccess (look in /kernel/setup/templateview.php). Add the following lines to your "[SiteAccessSettings]" block and it should work:

AvailableSiteAccessList[]
AvailableSiteAccessList[]=en
AvailableSiteAccessList[]=de
AvailableSiteAccessList[]=cms

Allman

Luis Cruz

Monday 01 November 2004 12:04:32 pm

One last item to make this solution complete; you need to flush the cache(s) after adding the lines back in. I had put that block back in before with no result. However, reading over my post and your reply made me realize that the drop-down might be cached.

Flushed the cache after adding the lines back in, and sure enough the drop-down had all my sitedesigns.

Thanks for the assist.