Logo distorted when using included "Corporate" package

Author Message

Carlos H Caballero

Monday 12 July 2004 10:36:07 pm

First and foremost: Version 3.4 REALLY ROCKS. HUGE advantages over 3.2, the book comes handy, the documentation is more robust, and the enhancements to the admin interface in the Corporate package are great. Congratulations to the team!!!

Second: after struggling with ezP on a shared account, no root access, I discovered FireBright.com (hosted ezP with root access): will NEVER go back, GREAT so far...

Now, the problem that brings me back to this forum (previously as "ck", lost password, the "Send password" option in this site sends email to the right address, but also an incomplete URL to re-login)...

a) Chose to install the Corporate package
b) Using the Admin interface, replaced the image "Logo" with our corporate logo
c) NO MATTER what I do, what size of logo I upload, whether .GIF or .PNG, the logo gets resized, and in the process ruined (is a highly detailed logo, already compressed)
d) For the life of me, I can't find where and/or why is the logo resized, and thus I can't fix it. Replacing the file in the ./var/... directory works only until the next time I clean the cache...

It's a pity, because without this problem I could go from initial installation to final complete site in a couple of days!

Cheers

Chavo (a.k.a. CKnight)

Kåre Køhler Høvik

Tuesday 13 July 2004 12:13:52 am

Check <i>design/[your siteaccess]/design/templates/pagelayout.tpl</i>. There's a line there called :

 <a href={"/"|ezurl}><img src={$pagedesign.data_map.image.content[logo].full_path|ezroot} alt="{$pagedesign.data_map.image.content[logo].text}" /></a>

Replace logo with original to get original image and size.

  <a href={"/"|ezurl}><img src={$pagedesign.data_map.image.content[original].full_path|ezroot}  alt="{$pagedesign.data_map.image.content[original].text}" /></a>

Note, line might look a bit different, but replage logo with original, and it should work. The line is inside a cache block, so you need to clear those afterwards.

--
Kåre Høvik

Kåre Høvik

Carlos H Caballero

Tuesday 13 July 2004 6:14:33 pm

Thanks a lot. Worked like a charm!
Cheers
cc

Pablo Martinez

Thursday 25 October 2007 11:32:44 am

I just installed 3.10 and I am faced with the same issue. No matter what I do, the logo I upload is resized.

I tried to do what you instructed above, but to no avail.

Here is what I see in my design folder:

admin  base  ezwebin_site  standard

Inside ezwebin_site there are the following folders:

images  override  stylesheets  templates

But, there are no files in any of the directories underneath.

The only pagelayout.tpl file I see is in the design/base/templates directory. I made change there and deleted the cache, but the image keeps showing up smaller than what I uploaded.

Two questions:

1. How can I fix this?

2. How is it that EZ distributes the software with this problem? Or is this not a problem? Are logos supposed to have a certain size before they are uploaded? Would be great to understand why this is happening on a fresh install.

Thanks!!

Pablo Martinez

Thursday 25 October 2007 1:01:30 pm

I found the location of the templates that need to be updated.

Since I am using an ezpublish extension (that nice corporate design template) the path is a little different.

You need to look in the extension directory as so:

extension/ezwebin/design/ezwebin

There you will see the templates folder, etc. where you can find pagelayout.tpl. The above changes achieve the fix.

Cheers.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.