Forums / Setup & design / Where is the article template file?

Where is the article template file?

Author Message

R Sutton

Thursday 09 August 2007 3:34:27 pm

Hi all,

I am trying to find the article template so I can copy it and edit it for an override. I would like to stop the summary from displaying at the top of the full article view. Is there another way to do this in a setting somewhere or do I need to et my hands dirty with a custom template and an override?

Thanks!

paul bolger

Thursday 09 August 2007 5:10:40 pm

Hi R

If you want to see which templates are in use turn these settings on in Quicksettings for your siteaccess.

Template debug
Inline template debug

I think you will have to override the template. One way to start is to copy the present one to somewhere in your siteaccess overrides, override the original and then edit the copy. Bear in mind though, that that many of the generic templates may seem pretty complicated as they are designed to work in any situation. If you write your own from scratch you can write specifically for your use-case.

Take a look at 'building an EzPublish site'

http://ez.no/content/download/48190/124975/version/1/file/building.pdf

for some basics.

Paul Bolger

R Sutton

Thursday 09 August 2007 5:36:05 pm

Thanks Paul!

I am doing that now. Will that tell me directories of the template files in use as well. The templates seem buried and I cannot seem to locate any tpl file called "article" to copy and start from. Thanks for the tips. I am liking this system and wondering why I never found it before now. Have used textpattern for years, but I am starting to get more "enterprise" type requests that it just can handle without major backend hacking and this really fits the bill as I slowly get my head around it.

paul bolger

Thursday 09 August 2007 6:11:37 pm

It will tell you which directory the templates are kept. Bear in mind that a lot of the templates are nested, so look for the one which encapsulates your content.

When you do create an override be aware that it's better for the override to have a different name, and be in a different directory (/my siteaccess/override/templates/my_custom_templates rather than /my siteaccess/override/templates/content/view -or whatever) to that of the original.

Paul Bolger

R Sutton

Friday 10 August 2007 8:46:11 am

Thanks for the push Paul. You got me going!

Cheers!

R Sutton

Friday 10 August 2007 9:32:31 am

For anyone else who may find this thread looking for this information. The summary in article full view and image in article full view can simply be toggled from content.ini from your site settings-ini section in the Admin area without doing any override templates. Cool :)

eZ debug

Timing: Jan 18 2025 16:14:19
Script start
Timing: Jan 18 2025 16:14:19
Module start 'content'
Timing: Jan 18 2025 16:14:20
Module end 'content'
Timing: Jan 18 2025 16:14:20
Script end

Main resources:

Total runtime0.7179 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.7344180.8281
Module start 'content' 0.00700.6125 768.5625567.3672
Module end 'content' 0.61950.0984 1,335.9297337.3984
Script end 0.7179  1,673.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5410210.0002
Check MTime0.00150.2053210.0001
Mysql Total
Database connection0.00070.090710.0007
Mysqli_queries0.657391.55662030.0032
Looping result0.00140.20082010.0000
Template Total0.691996.420.3460
Template load0.00180.252820.0009
Template processing0.690096.117020.3450
Template load and register function0.00010.020110.0001
states
state_id_array0.00090.127010.0009
state_identifier_array0.00100.136220.0005
Override
Cache load0.00150.2094280.0001
Sytem overhead
Fetch class attribute can translate value0.00090.121030.0003
Fetch class attribute name0.00080.117870.0001
XML
Image XML parsing0.00080.105030.0003
class_abstraction
Instantiating content class attribute0.00000.001480.0000
General
dbfile0.00230.3237270.0001
String conversion0.00000.001430.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs