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?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:38:13
Script start
Timing: Jan 18 2025 18:38:13
Module start 'layout'
Timing: Jan 18 2025 18:38:13
Module start 'content'
Timing: Jan 18 2025 18:38:14
Module end 'content'
Timing: Jan 18 2025 18:38:14
Script end

Main resources:

Total runtime1.5329 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.0313152.6250
Module start 'layout' 0.00590.0023 741.656339.4609
Module start 'content' 0.00821.5229 781.1172593.2422
Module end 'content' 1.53110.0017 1,374.359412.1641
Script end 1.5329  1,386.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.1977160.0002
Check MTime0.00130.0830160.0001
Mysql Total
Database connection0.00070.046310.0007
Mysqli_queries1.472796.0716650.0227
Looping result0.00070.0479630.0000
Template Total1.490497.220.7452
Template load0.00260.166620.0013
Template processing1.487897.058920.7439
Template load and register function0.00020.010610.0002
states
state_id_array0.00560.367210.0056
state_identifier_array0.00120.075420.0006
Override
Cache load0.00210.1379390.0001
Sytem overhead
Fetch class attribute can translate value0.00730.475530.0024
Fetch class attribute name0.00200.127460.0003
XML
Image XML parsing0.00070.047330.0002
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00200.1317160.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs