Forums / Setup & design / full_class_1.tpl Design Problem

full_class_1.tpl Design Problem

Author Message

David Barker

Monday 04 August 2003 10:46:38 am

Hi,
I was going through the tutorial to try and customise the look of the content which displays the files in a folder and I did what it told me but it didn't make any difference.

I made a new file called full_class_1.tpl in /design/acne/override/templates/node/view containing this code:

{* set children variable *}
{let children=fetch('content',list,hash(parent_node_id,$node.node_id))}

<h1>{$node.name}</h1>

{* loop children and print name *}
{section name=Child loop=$children}
{$Child:item.name}<br>
{/section}

{/let}

However, when I try to view a folder which has content in it, I still get the same, old design (a little piece of paper with the title next to it) - not the title of the folder followed by just a plain list (like it should be).

I'm using version 3.1-1 btw. I was thinking maybe it was an old tutorial - in which case how do I change the template for 'full' in section 1? I looked in override.ini.append but couldn't find anything to do with it :( Thanks for any help!!

Dave

Alex Jones

Monday 04 August 2003 11:59:47 am

Dave, you will need to add your own entry to your override.ini.append if the override doesn't exist already. Something akin to:

[full_class_1]
Source=node/view/full.tpl
MatchFile=full_class_1.tpl
Subdir=templates
Match[class]=1

Also, make sure you have cleared your ini and template caches after uploading this and your templates.

Does this help?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

David Barker

Monday 04 August 2003 12:59:46 pm

Hey thanks for the help!
I just realised what it was though! (silly me) There was already an override template called folder.tpl so even after I added my info in override.ini for full_class_1.tpl, the folder.tpl was used. But I've fixed that and it works like it should now!

Thanks!!!
Dave

Alex Jones

Monday 04 August 2003 1:45:22 pm

Great to hear you figured it out. The little mistakes can often be the most vexing.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

padEE Scherer

Saturday 09 August 2003 6:24:14 am

hi all,
i think your topic is that, what makes me going insane... what i didn't understand so far is if it is necessary to make an entry in an .append file, if i use a different object number (in my case 29)? I think, then it is not necessary to create an .append file, is it?

eZ debug

Timing: Jan 18 2025 15:06:06
Script start
Timing: Jan 18 2025 15:06:06
Module start 'content'
Timing: Jan 18 2025 15:06:07
Module end 'content'
Timing: Jan 18 2025 15:06:07
Script end

Main resources:

Total runtime1.6075 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.7266180.8359
Module start 'content' 0.00691.4046 768.5625598.3203
Module end 'content' 1.41140.1960 1,366.8828337.4063
Script end 1.6075  1,704.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.2685210.0002
Check MTime0.00160.1005210.0001
Mysql Total
Database connection0.00080.052910.0008
Mysqli_queries1.525894.91532020.0076
Looping result0.00240.14672000.0000
Template Total1.574698.020.7873
Template load0.00200.125120.0010
Template processing1.572697.826920.7863
Template load and register function0.00050.030510.0005
states
state_id_array0.00130.080710.0013
state_identifier_array0.00360.225620.0018
Override
Cache load0.00170.1044390.0000
Sytem overhead
Fetch class attribute can translate value0.00150.093140.0004
Fetch class attribute name0.00200.124560.0003
XML
Image XML parsing0.00210.131940.0005
class_abstraction
Instantiating content class attribute0.00000.001070.0000
General
dbfile0.00480.2978270.0002
String conversion0.00000.000430.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs