Changing default image size in online editor

Author Message

John Champaign

Tuesday 12 September 2006 8:49:45 am

How do you change the default size for images for "insert object" in the on-line editor? The default seems to be "medium" for me (I'd like it to be "original").

Jacobo Quiles

Tuesday 07 November 2006 12:14:11 am

I think you must override the embed template (design/base/override/templates/embed/image.tpl).

Try changing the image_class param to the one you need:

{section show=is_set($link_parameters.href)}
{attribute_view_gui attribute=$object.data_map.image image_class=$object_parameters.size href=$link_parameters.href|ezurl target=$link_parameters.target link_class=$link_parameters.classification link_id=$link_parameters.id}
{section-else}
{attribute_view_gui attribute=$object.data_map.image image_class=$object_parameters.size}
{/section}

Microblau SL
http://www.microblau.net

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 06:17:28
Script start
Timing: Jan 31 2025 06:17:28
Module start 'layout'
Timing: Jan 31 2025 06:17:28
Module start 'content'
Timing: Jan 31 2025 06:17:28
Module end 'content'
Timing: Jan 31 2025 06:17:28
Script end

Main resources:

Total runtime0.0138 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.0050 588.2656151.2266
Module start 'layout' 0.00500.0024 739.492236.6797
Module start 'content' 0.00750.0052 776.171990.1875
Module end 'content' 0.01260.0012 866.359429.9922
Script end 0.0138  896.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.8649140.0002
Check MTime0.00118.0426140.0001
Mysql Total
Database connection0.00085.942410.0008
Mysqli_queries0.002216.026630.0007
Looping result0.00000.094710.0000
Template Total0.00096.410.0009
Template load0.00075.162610.0007
Template processing0.00021.184310.0002
Override
Cache load0.00053.704510.0005
General
dbfile0.00149.889780.0002
String conversion0.00000.056840.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