Templates for Folders

Author Message

Kristjan Klementi

Monday 14 April 2003 12:23:58 am

Hi
I sort of got lost in all the template stuff
How can I make a folder have different designs.
I have 6 main folders / every one has 2 levels of subfolders where the articles and infopages reside. In some of those I want to have different layout...
I have learned to make them all look the same... but how I can sepparate them ? And make the layout look different?
/Kristjan

Paulo Almeida

Monday 14 April 2003 4:02:32 am

I think you have 3 ways to do so. In my opinion, create a new class for "sub folders", if all "subfolders" could have the same layout.
Another way is create an template for each subfolder full_node_xx.tpl (xx is the object id).
The last way i thought is, in full_class_1.tpl use $DesignKeys.depth, to find in which "level" the folder is. Now use {section show.......}, to select what to "show".
I hope i helped.

PACPI.COM Internet Consulting
http://pacpi.com

Kristjan Klementi

Monday 14 April 2003 6:26:29 am

Thanks for advise
Making some separate folders looks a reasonable solution for me.
/Kr.

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 04:58:46
Script start
Timing: Jan 18 2025 04:58:46
Module start 'layout'
Timing: Jan 18 2025 04:58:46
Module start 'content'
Timing: Jan 18 2025 04:58:47
Module end 'content'
Timing: Jan 18 2025 04:58:47
Script end

Main resources:

Total runtime0.7503 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 592.0234152.6250
Module start 'layout' 0.00630.0025 744.648439.4453
Module start 'content' 0.00870.7401 784.0938529.8906
Module end 'content' 0.74880.0014 1,313.98448.1719
Script end 0.7503  1,322.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4625160.0002
Check MTime0.00130.1770160.0001
Mysql Total
Database connection0.00070.091810.0007
Mysqli_queries0.696092.7664570.0122
Looping result0.00050.0679550.0000
Template Total0.706594.220.3532
Template load0.00220.297620.0011
Template processing0.704293.863220.3521
Template load and register function0.00030.033510.0003
states
state_id_array0.00060.077610.0006
state_identifier_array0.00150.199720.0007
Override
Cache load0.00180.2458190.0001
Sytem overhead
Fetch class attribute can translate value0.00050.068020.0003
Fetch class attribute name0.00130.166840.0003
XML
Image XML parsing0.00210.286120.0011
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00320.4253160.0002
String conversion0.00000.001240.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs