Forums / Developer / help

help

Author Message

carlos mboyo

Friday 14 January 2011 2:56:11 am

How to generate a pdf and excel with a button ?????

Bertrand Dunogier

Friday 14 January 2011 3:07:40 am

Hi.

Honestly, we don't even know where to start when it comes to answering that. From what kind of content source ? Both formats with one button ? As a downloadable zip ?

And please, use something more verbose than 'help' as your question's topic ! ;-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

carlos mboyo

Friday 14 January 2011 3:30:44 am

not 1 but 2 button, one for PDF and one for excel.

Abdelkader RHOUATI

Friday 14 January 2011 1:35:55 pm

Hello Carlos

For export to PDF, I invite you to use the extension http://projects.ez.no/paradoxpdf.

And for export to Excel, i think creating an layout is good for this. To do it add this code to configuration file layout.ini :

[excel]
PageLayout=excel_pagelayout.tpl
ContentType=application/excel

In template excel_pagelayout.tpl, create the excel's table, exactly like an HTML table.

Finally, for the button/link you use "/layout/set/excel/[url alias of node]".

hope it's help !

TKS,

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

eZ debug

Timing: Jan 18 2025 04:13:10
Script start
Timing: Jan 18 2025 04:13:10
Module start 'content'
Timing: Jan 18 2025 04:13:10
Module end 'content'
Timing: Jan 18 2025 04:13:10
Script end

Main resources:

Total runtime0.1560 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.4766180.8672
Module start 'content' 0.00620.0040 768.343893.9297
Module end 'content' 0.01020.1458 862.2734521.5313
Script end 0.1559  1,383.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.2369200.0002
Check MTime0.00140.8780200.0001
Mysql Total
Database connection0.00090.602710.0009
Mysqli_queries0.112071.78861410.0008
Looping result0.00130.80231390.0000
Template Total0.145593.210.1455
Template load0.00090.548710.0009
Template processing0.144692.695910.1446
Override
Cache load0.00060.392410.0006
Sytem overhead
Fetch class attribute can translate value0.00090.575810.0009
XML
Image XML parsing0.00030.169210.0003
General
dbfile0.00161.0438200.0001
String conversion0.00000.004030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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