Forums / Setup & design / Define alt & title text for image (attribute_view_gui)

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

eZ debug

Timing: Jan 31 2025 04:15:38
Script start
Timing: Jan 31 2025 04:15:38
Module start 'content'
Timing: Jan 31 2025 04:15:38
Module end 'content'
Timing: Jan 31 2025 04:15:38
Script end

Main resources:

Total runtime0.0196 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.0048 588.0781180.8125
Module start 'content' 0.00480.0061 768.890694.0547
Module end 'content' 0.01090.0087 862.945370.7031
Script end 0.0195  933.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00199.4332120.0002
Check MTime0.00094.6096120.0001
Mysql Total
Database connection0.00063.242410.0006
Mysqli_queries0.002311.662040.0006
Looping result0.00000.045020.0000
Template Total0.008442.610.0084
Template load0.00083.985010.0008
Template processing0.007638.550610.0076
Override
Cache load0.00052.532710.0005
General
dbfile0.005829.3593100.0006
String conversion0.00000.014630.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