how to add string to variable - closed

Author Message

scrieler _

Monday 17 March 2008 3:00:35 am

hello! :)

how to add a string to variable like in php

<img alt="{$language}" src={$language.'gif'|ezimage}/>

i wanna have <img alt="Ger" src=/extension/ezwebin/design/ezwebin/images/Ger.gif>

André R.

Monday 17 March 2008 3:30:55 am

<img alt="{$language}" src={concat( $language, 'gif' )|ezimage} />

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

scrieler _

Monday 17 March 2008 3:36:38 am

ah, concat, big thx to u

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:30:11
Script start
Timing: Jan 31 2025 04:30:11
Module start 'layout'
Timing: Jan 31 2025 04:30:11
Module start 'content'
Timing: Jan 31 2025 04:30:11
Module end 'content'
Timing: Jan 31 2025 04:30:11
Script end

Main resources:

Total runtime0.0346 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.0157 588.2578151.2266
Module start 'layout' 0.01570.0030 739.484436.6797
Module start 'content' 0.01870.0137 776.164190.2188
Module end 'content' 0.03240.0021 866.382829.9922
Script end 0.0345  896.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00308.6303140.0002
Check MTime0.00113.1275140.0001
Mysql Total
Database connection0.00102.779310.0010
Mysqli_queries0.012536.149230.0042
Looping result0.00000.029010.0000
Template Total0.00133.810.0013
Template load0.00102.915210.0010
Template processing0.00030.902510.0003
Override
Cache load0.00072.163610.0007
General
dbfile0.00031.000480.0000
String conversion0.00000.022840.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