images base path / where ezimage defined?

Author Message

Scot Wilcoxon

Sunday 06 April 2003 2:43:20 pm

I'm trying to make a site one level down: example.com/info rather than immediately under a domain. Others have mentioned trying to use example.com/~username.

The stylesheets and images directories are not found, as they are looking for "design" in the root directory which is one level too high (/var/www/html/design rather than /var/www/html/ezpublish/design).

I see where wwwDir is set, but adding an "else" to take the first part of the path (/info/) works for the missing directories but makes generated links be /info/info/. (I recognize that wwwDir is set to before the .ini files are read thus no configuration can be used at that point)

Apparently I have to make the "ezimage" template operator recognize the situation (for images -- stylesheet I'll deal with next). I see the code is in kernel/common/ezurloperator.php.

What would seem to be the best way of dealing with this? Perhaps by seeing that SiteURL contains a path after the site name? Or does that violate a design concept?

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

Main resources:

Total runtime1.0383 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.1484152.6406
Module start 'layout' 0.00490.0023 741.789139.4766
Module start 'content' 0.00731.0293 781.2656400.0469
Module end 'content' 1.03660.0017 1,181.31258.1250
Script end 1.0383  1,189.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3498160.0002
Check MTime0.00130.1229160.0001
Mysql Total
Database connection0.00060.062310.0006
Mysqli_queries0.999096.2119460.0217
Looping result0.00040.0426440.0000
Template Total1.002796.620.5013
Template load0.00220.213720.0011
Template processing1.000496.350020.5002
Template load and register function0.00020.023210.0002
states
state_id_array0.00120.114110.0012
state_identifier_array0.00270.260420.0014
Override
Cache load0.00190.180080.0002
Sytem overhead
Fetch class attribute can translate value0.00070.067110.0007
Fetch class attribute name0.00060.062010.0006
XML
Image XML parsing0.00010.010610.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00270.2640100.0003
String conversion0.00000.000640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs