Forums / Setup & design / logo size with ezwebin

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