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.

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 16:12:20
Script start
Timing: Jan 18 2025 16:12:20
Module start 'layout'
Timing: Jan 18 2025 16:12:20
Module start 'content'
Timing: Jan 18 2025 16:12:21
Module end 'content'
Timing: Jan 18 2025 16:12:21
Script end

Main resources:

Total runtime0.6377 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.2813152.6563
Module start 'layout' 0.00730.0029 741.937539.5078
Module start 'content' 0.01020.6261 781.4453509.2031
Module end 'content' 0.63630.0014 1,290.648412.1094
Script end 0.6377  1,302.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5256160.0002
Check MTime0.00140.2155160.0001
Mysql Total
Database connection0.00110.168110.0011
Mysqli_queries0.589292.3919570.0103
Looping result0.00050.0762550.0000
Template Total0.603694.620.3018
Template load0.00210.329220.0010
Template processing0.601594.318620.3007
Template load and register function0.00020.024910.0002
states
state_id_array0.00310.486310.0031
state_identifier_array0.00110.177920.0006
Override
Cache load0.00180.2810260.0001
Sytem overhead
Fetch class attribute can translate value0.00060.086320.0003
Fetch class attribute name0.00090.135540.0002
XML
Image XML parsing0.00070.102720.0003
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00080.1295160.0001
String conversion0.00000.001440.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs