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...

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

eZ debug

Timing: Jan 31 2025 04:34:36
Script start
Timing: Jan 31 2025 04:34:36
Module start 'layout'
Timing: Jan 31 2025 04:34:36
Module start 'content'
Timing: Jan 31 2025 04:34:36
Module end 'content'
Timing: Jan 31 2025 04:34:36
Script end

Main resources:

Total runtime0.0137 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.1328151.2109
Module start 'layout' 0.00550.0025 739.343836.6484
Module start 'content' 0.00800.0044 775.992290.1719
Module end 'content' 0.01230.0014 866.164133.9922
Script end 0.0137  900.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.2896140.0002
Check MTime0.00107.4254140.0001
Mysql Total
Database connection0.00118.294210.0011
Mysqli_queries0.002417.368730.0008
Looping result0.00000.079910.0000
Template Total0.00117.810.0011
Template load0.00086.181110.0008
Template processing0.00021.617810.0002
Override
Cache load0.00064.563310.0006
General
dbfile0.00032.330380.0000
String conversion0.00000.043440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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