IndexPage is ignored

Author Message

Ciprian Popovici

Friday 05 May 2006 4:54:21 am

My IndexPage option has started being ignored rather suddenly. I have two siteaccess's set up on one eZ installation and both of them seem to pull the default page out of their hat. As it happens, one of them gets it right (it's the one I set up way back then), but the other doesn't (it picks a folder upper in the content tree).

I've set up the 2 sites like this:

Content root:
-- site1
--|-- node X
-- site2
--|-- node Y

For each site I say IndexPage=/content/view/full/X (or Y). As of recent, they ignore this and I always get X for the first and the node id of the [site2] folder for the second.

I've tried several things I could think of: cleared all cache, deleted everything manually from var/cache/, checked that I don't have IndexPage in the global override. Nothing.

Ciprian Popovici

Sunday 07 May 2006 11:37:51 pm

I've "solved" it by going to Setup/URL Translator and setting up a system forwarding from "site2" (the folder that holds the objects for this site) to content/view/full/145 (the node that holds the homepage article). I repeat, the nodes are different, site2 being 141 and the homepage article being 145. IndexPage is set to 145, yet it keeps showing 141.

I'm glad it worked out, but if anybody can give me an explanation I'd appreciate it.

Besides, this workaround has the lovely effect of being active for the admin siteaccess too, and I can't go into the "site2" folder anymore, it redirects to the homepage article below. It makes adding new folders or articles rather tedious, having to move them around after creation.

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 31 2025 04:27:55
Script start
Timing: Jan 31 2025 04:27:55
Module start 'layout'
Timing: Jan 31 2025 04:27:55
Module start 'content'
Timing: Jan 31 2025 04:27:55
Module end 'content'
Timing: Jan 31 2025 04:27:55
Script end

Main resources:

Total runtime0.0134 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1250151.2109
Module start 'layout' 0.00490.0029 739.335936.6484
Module start 'content' 0.00780.0043 775.984490.0156
Module end 'content' 0.01220.0012 866.000029.9922
Script end 0.0134  895.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.4898140.0002
Check MTime0.00107.7568140.0001
Mysql Total
Database connection0.00064.547610.0006
Mysqli_queries0.002720.465830.0009
Looping result0.00000.097610.0000
Template Total0.00096.910.0009
Template load0.00085.701310.0008
Template processing0.00021.198110.0002
Override
Cache load0.00064.102010.0006
General
dbfile0.00032.059080.0000
String conversion0.00000.051540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs