Image missing from plain_site

Author Message

Peter Chan

Sunday 19 April 2009 2:00:24 pm

Hi, a newbee question: I've downloaded the latest 4.1.0 and installed it.
I've tried both Orange and Diamond skin from ez.no:

In Admin | Design | Look & Feel, I have added an image and alt text, then published it, refreshed navigateur, cleared cache, etc. But I don't see this image anywhere (hoping that it's company logo or master head).

What's troublesome is the html generated shows this:
<div id="topcontent">
<div id="header">
<div id="header-design">
<a href="/ezpublish/index.php/plain_site"><img src="/ezpublish/" alt="" /></a>
</div>
</div>
...
The image src is incomplete.

Is this a bug? Thanks for any hint or solution.

Olivier Portier

Tuesday 28 April 2009 2:14:41 am

Hi Peter,

The modification you did in the backoffice, changed the pagelayout.tpl from the default sitedesign of your site. In fact the modification is a image class issue.
Here is the template code :

{$pagedesign.data_map.image.content[logo].full_path|ezroot}

The image class called is "logo". But it does not exists for plain_site. You will have to add it.

Image classes are defined in a <i>image.ini.append.php</i> configuration file. you can change this settings in <i>settings/override/image.ini.append.php</i> or <i>settings/siteaccess/plain_site/image.ini.append.php</i> files.

<?php /* 

[AliasSettings]
AliasList[]=logo

[logo]
Reference=
Filters[]
Filters[]=geometry/scaleheight=36

*/ ?>

Clear your cashes with the administration interface (Setup) and look at the changes on your front office. The logo should be displayed.

Hope this will help you.
Regards
Olivier

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:29:27
Script start
Timing: Jan 31 2025 04:29:27
Module start 'layout'
Timing: Jan 31 2025 04:29:27
Module start 'content'
Timing: Jan 31 2025 04:29:27
Module end 'content'
Timing: Jan 31 2025 04:29:27
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.0046 588.2500151.2266
Module start 'layout' 0.00460.0024 739.476636.6797
Module start 'content' 0.00700.0050 776.156390.2969
Module end 'content' 0.01190.0015 866.453129.9922
Script end 0.0134  896.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.2383140.0002
Check MTime0.00107.6228140.0001
Mysql Total
Database connection0.00074.857510.0007
Mysqli_queries0.002316.909730.0008
Looping result0.00000.097710.0000
Template Total0.00107.710.0010
Template load0.00086.116710.0008
Template processing0.00021.580710.0002
Override
Cache load0.00054.067110.0005
General
dbfile0.00107.766680.0001
String conversion0.00000.058640.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