Forums / Setup & design / Override setting for a file - using it's own description as a comment

Override setting for a file - using it's own description as a comment

Author Message

Zoltan Szabo

Wednesday 18 August 2004 11:07:54 pm

I'm fighting with eZp3.4.1.
I'd like to make an override tpl file for paragraph.tpl.
I could do it in some cases, but now I can't move over.

My aim is to use the file own Description ezxml text attribute as a comment to the downloadable file itself, like this:
Something nice: myfile.pdf,
where 'Something nice' is the description. If I do not override the paragraph.tpl, it's not possible to put it in the same row as the filename itself.

If I put a file as a related object into the ezxml text, it works, but if I try to show it as a simple file after a fetch, it does not use my override file, but the original one.

I have this in my override.ini.append:

[p_r_gr_ph1]
Source=content/datatype/view/ezxmltags/paragraph.tpl
MatchFile=content/datatype/view/ezxmltags/p_r_gr_ph1.tpl
Subdir=templates
Match[attribute_identifier]=short_description

[p_r_gr_ph2]
Source=content/datatype/view/ezxmltags/paragraph.tpl
MatchFile=content/datatype/view/ezxmltags/p_r_gr_ph2.tpl
Subdir=templates
Match[class_identifier]=file

I copied the content/datatype/view/ezxmltags/paragraph.tpl file from the standard design into my own design filestructure, otherwise the system said 'there is nothing to override'.

Is there some possibility to set the debug system (or put a var_dump into some files) to know which override.ini section is used (and why)?

Bård Farstad

Wednesday 18 August 2004 11:49:02 pm

You can actually set this in stylesheets for your paragraph. Just make the paragraph not break the text flow. This can be addressed via div's indirectly so you should not need to change the template.

You should be able to do something like this:

<html>
  <head>
    <style>
      p { display: inline; }
    </style>
  </head>
  <body>
  <h2>Inline paragraphs</h2>
  <p>Paragraph content</p>
  <p>which does not </p>
  <p>break into blocks</p>
  </body>
</html>

--bård

Documentation: http://ez.no/doc

eZ debug

Timing: Jan 31 2025 00:41:21
Script start
Timing: Jan 31 2025 00:41:21
Module start 'content'
Timing: Jan 31 2025 00:41:21
Module end 'content'
Timing: Jan 31 2025 00:41:22
Script end

Main resources:

Total runtime0.2648 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.0071 588.2813370.2578
Module start 'content' 0.00710.0131 958.53911,001.7500
Module end 'content' 0.02020.2446 1,960.28913,891.6172
Script end 0.2648  5,851.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.6350200.0002
Check MTime0.00130.5017200.0001
Mysql Total
Database connection0.00070.271910.0007
Mysqli_queries0.173165.35951410.0012
Looping result0.00150.57461390.0000
Template Total0.244292.210.2442
Template load0.00090.332710.0009
Template processing0.243391.868510.2433
Override
Cache load0.00060.231910.0006
Sytem overhead
Fetch class attribute can translate value0.00200.740910.0020
XML
Image XML parsing0.00040.135610.0004
General
dbfile0.00542.0254200.0003
String conversion0.00000.002330.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