CLEAN Modul - Template Output ???

Author Message

Daniel Scheiner

Tuesday 20 February 2007 10:57:22 am

Hi!

I need a completely clean output without any:

<!-- START: including template: extension/supplynet/design/standard/templates/x/y.tpl (design:x/y.tpl) -->
<p class="small">extension/supplynet/design/standard/templates/x/y.tpl</p><br/>

or any of that.

What do I have to put inside my module-view or my template to simply generate output like one would get from simple "echo" commands like in a php-script?

I just need the output like the result of:

echo $variable."\n";
echo $varbaile2."\n";

Thanks!!!

kracker (the)

Tuesday 20 February 2007 11:55:27 am

This is supported.

Inside your module's 'action' php file, add a line like this to disable the loading of a pagelayout template.

$Result['pagelayout'] = false;

Cheers,
//kracker

Home Movies - Duane's Practice

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Daniel Scheiner

Wednesday 21 February 2007 3:59:49 am

Hi!

yep i already put that piece of code in my modul-view.
however the output i posted still comes out either way.

Kristof Coomans

Wednesday 21 February 2007 4:08:47 am

Hi Daniel

Take a look at http://ezpedia.org/wiki/en/ez/debug_templatesettings

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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

Main resources:

Total runtime0.0116 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.0043 588.1328151.2109
Module start 'layout' 0.00430.0021 739.343836.6484
Module start 'content' 0.00640.0042 775.992290.2813
Module end 'content' 0.01060.0010 866.273433.9922
Script end 0.0115  900.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002017.7029140.0001
Check MTime0.00108.7637140.0001
Mysql Total
Database connection0.00065.348610.0006
Mysqli_queries0.001815.224630.0006
Looping result0.00000.076410.0000
Template Total0.00076.310.0007
Template load0.00064.863710.0006
Template processing0.00021.419710.0002
Override
Cache load0.00043.444010.0004
General
dbfile0.00119.715080.0001
String conversion0.00000.043340.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