Forums / Setup & design / Changing size of the Corporate banner with E.z 3.9

Changing size of the Corporate banner with E.z 3.9

Author Message

Pat Pinto

Monday 01 January 2007 1:47:43 am

I'm discovering day by day this product and it's quite really complex to handle compared to other tpl product like Xcart for example.

My question is how to change the size of Corporate banner with E.z 3.9 ?

When i looked in my page source, here is what i got

<div class="content-view-full">
	<div class="class-frontpage leftcolumn norightcolumn">
	<div class="attribute-billboard">
		            <img src="/~sjm500/var/ezwebin_site/storage/images/media/banners/corporate_banner/229-3-fre-FR/corporate_banner_billboard.jpg" alt="" border="0" />	</div>
	<div class="columns-frontpage float-break">
		<div class="left-column-position">
			<div class="left-column">
        	<!-- Content: START -->

I though there was class="attribute-billboard in the Css somewhere but no success.

I looked in my pagelayout.tpl to see if there is an object size, but i can't find it.

If someone can give me some idea that would be great.

Thanks and happy New Year !!!

Betsy Gamrat

Monday 01 January 2007 8:02:07 pm

Pat,

If there isn't a class <i>attribute-billboard</i>, you could add one in <b>classes-colors.css</b>. Use view source to find the file and edit it directly.

The template language is quite different from X-Cart (which uses Smarty). The operations are piped.

Ideas:

Use the template debug options on the right column in the admin console. Set the view to your site view, clear the caches, and refresh the page. You will see the names of all the templates in use.

Use the filter on the template list. Often, choosing a word such as <i>user</i> for the filter will help you find the templates you need.

If you are comfortable using SSH/command-line, you can use <b>grep</b> to search for the template you need (<b>grep -r attribute-billboard *</b>).

Strive to use the default eZ templates as much as possible, and use CSS to manage the interface. You will save a tremendous amount of time.

Good luck!

André R.

Tuesday 02 January 2007 3:57:40 am

I guess you are using the website interface ? (ezwebin extension)
It's using the normal image.ini settings for setting image alias size, override image.ini in your siteaccess or override settings folders and add the following

[billboard]
Reference=
Filters[]
Filters[]=geometry/scalewidth=501

And change the width to your taste.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pat Pinto

Wednesday 03 January 2007 2:38:01 am

Thanks a lot for all of your inputs. This was usefull for me.
I've discovered also the debug option.
image.ini is the right file to be modified to set-up the size of image.
Learning curve is begining now.

Betsy Gamrat

Thursday 04 January 2007 5:56:14 pm

Andre,

Thank you for correcting me. Now I know how to do it the right way.

Pat,

The single most useful template development tool I use is <b>attribute(show)</b>. This allows you to see the attributes of objects.

{$node|attribute(show)}

The online documentation describes more advanced use.