Sommervacation already?

Author Message

Zinistry Vacana

Wednesday 18 June 2003 1:17:37 am

Lame activity in this forum..it's not eZ to get a reply nowadays ;)

laurent le cadet

Wednesday 18 June 2003 3:01:15 am

Hey, your not alone !
A question : could you tell me how to link a section to the good page layout.
I tryied pagelayout_mynewsection_10.tpl but it don't work. (section already create in the admin site).
In the demo>override>templates there is templates without ID number e.g. my_company.tpl.
How it works ? I can't find anything about this.

Bjørn Kaarstein

Wednesday 18 June 2003 4:23:06 am

You have to name your file "pagelayout_section_10.tpl", and put it in design\yourdesign\override\templates

Then you have to assign the wanted areas to section 10 in the admin interface.

To use regular templates, you have to include them, like this:

{include uri="design:yourtemplate.tpl"}

Regards Bjørn.

Paul Borgermans

Wednesday 18 June 2003 4:26:32 am

Well, It appears that you are running 3.1beta...

The override system has changed: see

http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/terminology_basics/the_new_template_override_system_from_31_onwards

For some initial "documentation".

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

laurent le cadet

Wednesday 18 June 2003 5:21:06 am

Great !thank U VERY much...

Sven Ryen

Wednesday 18 June 2003 6:03:02 am

Hi Paul!

Would you care to comment:

You have written some "documentation" for the new template override system. Will this system replace the current one, so that all overrides will have to be redone once my clients decide they want to upgrade to 3.1?

Bård Farstad

Wednesday 18 June 2003 6:36:28 am

Sven: yes, you will need to upgrade your template setup for 3.1. However you only need to create a configuration file. There is a script (
update/common/scripts/generateoverridesettings.php ) which does this for you. It should only be a matter of mintes to get a 3.0 site run with this new system.

However I would recommend that you use the new features of the override system so you can have nicer names for the override files ( article.tpl, folder.tpl, article_frontpage.tpl etc.. ) This will make maintainance simpler.

--bård

Documentation: http://ez.no/doc

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

Main resources:

Total runtime0.8056 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9063152.6250
Module start 'layout' 0.00520.0021 740.531339.4453
Module start 'content' 0.00730.7968 779.9766729.4922
Module end 'content' 0.80410.0014 1,509.468816.1719
Script end 0.8056  1,525.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3737160.0002
Check MTime0.00130.1580160.0001
Mysql Total
Database connection0.00110.135810.0011
Mysqli_queries0.744492.4102770.0097
Looping result0.00070.0899750.0000
Template Total0.780696.920.3903
Template load0.00170.209920.0008
Template processing0.778996.688120.3895
Template load and register function0.00020.021610.0002
states
state_id_array0.00070.088910.0007
state_identifier_array0.00150.180720.0007
Override
Cache load0.00150.1836370.0000
Sytem overhead
Fetch class attribute can translate value0.00060.071960.0001
Fetch class attribute name0.00100.1245100.0001
XML
Image XML parsing0.00230.283560.0004
class_abstraction
Instantiating content class attribute0.00000.0028110.0000
General
dbfile0.00140.1712300.0000
String conversion0.00000.000740.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
7content/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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs