logo size with ezwebin

Author Message

Michael Kress

Sunday 18 March 2007 9:10:51 am

Hi, I'm using ez publish 3.9.1 with ezwebin and I have a problem with the website header's logo. I replaced the logo that says "COMPANY LOGO - your slogan here" with my custom logo. This custom logo has a different size (180x63) but the uploaded picture (uploaded via Design --> Look&Feel --> Image) is only 103x36.
It's strange, under "Design --> Look&Feel --> Image" I can see the original size of the logo, but on the website there's only the reduced size.
How can I put my custom logo with the original size there without hardcoding pagelayout.tpl? (I'd like to be able to change the logo via the above form)
If I have no other chance than to hardcode, how do I do this, i.e. how do I reference to the picture?
Thanks
Michael

Michael Kress

Sunday 18 March 2007 9:22:17 am

wooops, sorry for not finding this earlier ...

<b>image.ini.append.php:</b>

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

I set this to 63 and it worked.

Regards,
Michael

Mickael Robin

Tuesday 05 February 2008 6:53:06 am

Hi,

using ezwebin with eZ publish 4.0 , I had to modifiy the pagelayout template to have the dimensions of my new logo accepted.

In line 174, remove the "[original]" attributes for widht and height ; which means use :

<a href={"/"|ezurl} title="{ezini('SiteSettings','SiteName')}"><img src={$pagedesign.data_map.image.content[original].full_path|ezroot} alt="{$pagedesign.data_map.image.content[original].text}" width="{$pagedesign.data_map.image.content.width}" height="{$pagedesign.data_map.image.content.height}" /></a>

instead of

<a href={"/"|ezurl} title="{ezini('SiteSettings','SiteName')}"><img src={$pagedesign.data_map.image.content[original].full_path|ezroot} alt="{$pagedesign.data_map.image.content[original].text}" width="{$pagedesign.data_map.image.content[original].width}" height="{$pagedesign.data_map.image.content[original].height}" /></a>

And don't forget to empty cache...

Cheers :-)

MikRob

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

Main resources:

Total runtime0.8592 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.0068 589.0234152.6250
Module start 'layout' 0.00680.0030 741.648439.4453
Module start 'content' 0.00980.8478 781.0938473.4844
Module end 'content' 0.85760.0015 1,254.578112.4844
Script end 0.8591  1,267.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4317160.0002
Check MTime0.00140.1647160.0001
Mysql Total
Database connection0.00090.100810.0009
Mysqli_queries0.809294.1869570.0142
Looping result0.00060.0734550.0000
Template Total0.824996.020.4125
Template load0.00200.234620.0010
Template processing0.822995.782420.4115
Template load and register function0.00020.023610.0002
states
state_id_array0.00100.120510.0010
state_identifier_array0.00070.080820.0003
Override
Cache load0.00170.2023260.0001
Sytem overhead
Fetch class attribute can translate value0.00090.108720.0005
Fetch class attribute name0.00130.155130.0004
XML
Image XML parsing0.00020.026320.0001
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00080.0900100.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs