Forums / Setup & design / Gallery line style problem

Gallery line style problem

Author Message

Noicokuna Niemoge

Sunday 18 January 2009 5:20:02 am

Hi there;

I try to make the images in gallery line display correctly. Now I see in source code the following code:

<div class="content-view-galleryline">
    <div class="class-image">
    <div class="attribute-image" style="width:105px ;height:100px">
        <p> (...) 

In the overrides, in gallery-line folder, the image template looks as follows:

<div class="content-view-galleryline">
    <div class="class-image">
    <div class="attribute-image"{if is_set($#image_style)} style="{$#image_style}"{/if}>
        <p>

The question is: where is the style setting? where should I change it? I don't want 105x100 pixels but 100x100. o_O

Shiki soku ze ku...

André R.

Sunday 18 January 2009 5:53:05 am

That variable should be set based on size you define in image.ini, but the code only understands settings that crop / resize both width and size so you should remove or enhance it if you use different image alias rules.

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

Noicokuna Niemoge

Sunday 18 January 2009 12:04:28 pm

Well, I use default ezwebin installation o_O No modifications...

Now I see in image.ini that is by default set to 105x100, I will change this, thanks!

(anyway, this doesn't look good: it should be changed ^^)

Shiki soku ze ku...

eZ debug

Timing: Jan 19 2025 04:28:46
Script start
Timing: Jan 19 2025 04:28:46
Module start 'content'
Timing: Jan 19 2025 04:28:46
Module end 'content'
Timing: Jan 19 2025 04:28:46
Script end

Main resources:

Total runtime0.0144 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.9531180.8359
Module start 'content' 0.00660.0044 769.789193.8984
Module end 'content' 0.01100.0033 863.687570.7031
Script end 0.0143  934.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002114.5866120.0002
Check MTime0.00106.8236120.0001
Mysql Total
Database connection0.00117.519010.0011
Mysqli_queries0.002416.988440.0006
Looping result0.00000.119520.0000
Template Total0.003020.910.0030
Template load0.00074.635910.0007
Template processing0.002316.276310.0023
Override
Cache load0.00053.286510.0005
General
dbfile0.00042.6159100.0000
String conversion0.00000.048130.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs