Share » Forums » Setup & design » Logo distorted when using included...

Logo distorted when using included "Corporate" package

Logo distorted when using included "Corporate" package

Monday 12 July 2004 10:36:07 pm - 4 replies

Modified on Monday 12 July 2004 10:37:32 pm by Carlos H Caballero

Author Message

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.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu