Forums / Setup & design / getting rid of a filesize print-out

getting rid of a filesize print-out

Author Message

Stefan van Zwoll

Thursday 08 January 2004 2:43:43 pm

hello,

using ezp3.2-3, i do have a download-section in my project. i print out the link for the direct download of a specific file, i use the following code:

{attribute_view_gui attribute=$node.object.data_map.file}

everything works out fine, but ezp for some reason prints out after the link the file size of that file.
how do i stop ezp from doing that? and with what code do i print out the filesize of that file (i might use that somewhere else on the page)?

thank you very much for your help.
stefan

Balazs Halasy

Friday 09 January 2004 1:03:23 am

When using attribute_view_gui, you're calling up the template for the datatype that is used to represent some data within the content object that you're accessing. In this case, the system is probably accessing the view template for the ezbinaryfile datatype. This template is located here:

/design/standard/template/class/datatype/view/ezbinaryfile.tpl

You should make your own ezbinaryfile.tpl and place it inside your design (simply copy the one from the standard design and remove the printout of the size);

/design/my_design/template/class/datatype/view/ezbinaryfile.tpl

The ezbinaryfile.tpl includes the code which demonstrates how to print out the filesize.

Cheers!

Balazs

Stefan van Zwoll

Friday 09 January 2004 4:16:14 am

hello balazs,

thank you for your help. the location of the tpl-file is

design/standard/templates/content/datatype/view/ezbinaryfile.tpl

though. looking forward to launch my site soon :-)...

sincerely, stefan

ps: for the direct link, i guess to use the ezbinaryfile_direct.tpl in the same location.

Balazs Halasy

Friday 09 January 2004 5:38:00 am

Ah, sorry - typo; I see it now.. my bad.. but at least you were able to find the correct one! :-)

Balazs

eZ debug

Timing: Jan 31 2025 01:36:08
Script start
Timing: Jan 31 2025 01:36:08
Module start 'content'
Timing: Jan 31 2025 01:36:08
Module end 'content'
Timing: Jan 31 2025 01:36:09
Script end

Main resources:

Total runtime0.2142 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.0313370.2891
Module start 'content' 0.00650.0129 958.32031,001.5313
Module end 'content' 0.01940.1948 1,959.85163,890.2422
Script end 0.2142  5,850.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00482.2239200.0002
Check MTime0.00150.6845200.0001
Mysql Total
Database connection0.00070.333810.0007
Mysqli_queries0.117154.67811410.0008
Looping result0.00200.93521390.0000
Template Total0.194290.710.1942
Template load0.00090.415010.0009
Template processing0.193390.257710.1933
Override
Cache load0.00060.277410.0006
Sytem overhead
Fetch class attribute can translate value0.00190.899510.0019
XML
Image XML parsing0.00030.130210.0003
General
dbfile0.00572.6481200.0003
String conversion0.00000.003230.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