Define alt & title text for image (attribute_view_gui)

Author Message

Michael Fürst

Wednesday 14 May 2008 5:55:30 am

Hi there,

I try to define an own title and alt text for an image wile using attribute_view_gui.
This call works perfect, but the title of the image ist automatically used for title & alt:

{attribute_view_gui href=$valid_node.url_alias|ezurl() attribute=$valid_node.data_map.foto_aufmacher.value.data_map.image image_class='mainstory1'}

Now i tried to add different parameters, but it's not working. For example:

{attribute_view_gui href=$valid_node.url_alias|ezurl() attribute=$valid_node.data_map.foto_aufmacher.value.data_map.image title='test', image_title='test' image_class='mainstory1'}

Has anyone an idea, what's the name of the correct parameter and if i can build it this way?

Thanks & bye,
Mike

Maxime Thomas

Wednesday 14 May 2008 11:13:38 pm

Hi Mike,

You can directly watch in the template called by the attribute_view_gui.
It's in design/<your design : ezflow / ezwebin / standard>/templactes/content/datatype/ezimage.tpl

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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 19 2025 11:52:17
Script start
Timing: Jan 19 2025 11:52:17
Module start 'layout'
Timing: Jan 19 2025 11:52:17
Module start 'content'
Timing: Jan 19 2025 11:52:17
Module end 'content'
Timing: Jan 19 2025 11:52:17
Script end

Main resources:

Total runtime0.0180 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.0063 589.3828152.6406
Module start 'layout' 0.00630.0037 742.023439.4766
Module start 'content' 0.01000.0057 781.500089.4922
Module end 'content' 0.01570.0022 870.992230.3047
Script end 0.0180  901.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.8222140.0002
Check MTime0.00116.0936140.0001
Mysql Total
Database connection0.00073.653210.0007
Mysqli_queries0.003419.043530.0011
Looping result0.00000.105910.0000
Template Total0.00179.410.0017
Template load0.00095.059510.0009
Template processing0.00084.320610.0008
Override
Cache load0.00073.644010.0007
General
dbfile0.00031.759880.0000
String conversion0.00000.050340.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