concat problem in a fetch template [solved]

Author Message

ludo thomas

Monday 22 August 2005 1:29:28 am

I fetch a template in a workflow.php page like this:

 $mailTemplateResult =& $tpl->fetch( 'extension/newsletter/design/standard/templates/news/show.tpl' );

in show.tpl I have this:

{concat('toto','titi')}

It seems that 'tototiti' never appear in the template result witch is sent into an email.

If I use concat function in a usual template, it works fine.
Do someone have the same pb?

Xavier Dutoit

Monday 22 August 2005 2:25:09 am

Are you running the workflow in debug template mode ? Whas does it says ? Have a look at the logs, you might have a clue there...

Good luck, debugging workflows is quite a pain in the...

X+

http://www.sydesy.com

ludo thomas

Monday 22 August 2005 3:05:14 am

No clue in logs...
the workflow works perfectly.
only concat function seems not to work.
it displays noting.

I want to make a <a href={concat(' ',$...)}</a>
but my link is like "",

so I try to display a simple concat string, and nothing more.Only "".

Perhaps a bug?

ludo thomas

Monday 22 August 2005 5:50:19 am

problem is resolved:
It was a syntax problem.
the rigth code for concat is here: you dont need to use concat function.

<a href=content/download/{$node.object.data_map.file.contentobject_id}/{$node.object.data_map.file.id}/file/{$node.object.data_map.file.content.original_filename }>{$node.object.data_map.file.content.original_filename|wash( xhtml )}</a>&nbsp;{$node.object.data_map.file.content.filesize|si( byte )}

this code makes a link for download a file who is in an other object .

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 07:18:27
Script start
Timing: Jan 19 2025 07:18:27
Module start 'layout'
Timing: Jan 19 2025 07:18:27
Module start 'content'
Timing: Jan 19 2025 07:18:27
Module end 'content'
Timing: Jan 19 2025 07:18:27
Script end

Main resources:

Total runtime0.0163 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.0070 589.2891152.6406
Module start 'layout' 0.00700.0026 741.929739.4766
Module start 'content' 0.00960.0047 781.406393.4922
Module end 'content' 0.01430.0020 874.898434.3047
Script end 0.0163  909.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.0182140.0002
Check MTime0.00117.0164140.0001
Mysql Total
Database connection0.00084.782710.0008
Mysqli_queries0.002515.205030.0008
Looping result0.00000.086110.0000
Template Total0.00169.710.0016
Template load0.00085.039610.0008
Template processing0.00084.646910.0008
Override
Cache load0.00053.201610.0005
General
dbfile0.00095.289380.0001
String conversion0.00000.043840.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