how to add a new section

Author Message

justin kazadi

Monday 07 April 2008 2:14:13 am

hello all ,

I want to know if it possible to add a new section since the administration interface and how

to do this.

I need to create a section for making same overrides ( templates ) like this :

for a group of objects (same classe for example : article ) who belong to a section use this

template but for a other group of objects (same classe for example : article ) who belong

to a section use this template.

thanks in advance.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Xavier Gouley

Monday 07 April 2008 3:08:15 am

Hello,

Just go in admin interface (with an admin for example)
in Setup tab, and click on the "Sections" item (on the left menu).
Add a new section (the name is totally free, notice the section id for your override.ini)
Now you can affect a subtree to this section:
In the Setup/Sections page, on your section's line, you have a link (a small "+"): click on it to add a sub-tree.

In the override.ini file, to use specific template override on this section, you have to insert:

Match[section]=<your_section_id>

Gook luck

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

justin kazadi

Monday 07 April 2008 4:15:59 am

thanks Xavier Gouley.
bye

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

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 31 2025 04:27:56
Script start
Timing: Jan 31 2025 04:27:56
Module start 'layout'
Timing: Jan 31 2025 04:27:56
Module start 'content'
Timing: Jan 31 2025 04:27:56
Module end 'content'
Timing: Jan 31 2025 04:27:56
Script end

Main resources:

Total runtime0.0171 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1328151.2109
Module start 'layout' 0.00480.0029 739.343836.6484
Module start 'content' 0.00770.0078 775.992290.2656
Module end 'content' 0.01550.0016 866.257833.9922
Script end 0.0171  900.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.0792140.0002
Check MTime0.00116.2239140.0001
Mysql Total
Database connection0.00063.774810.0006
Mysqli_queries0.002514.363930.0008
Looping result0.00000.124210.0000
Template Total0.00126.910.0012
Template load0.00095.378210.0009
Template processing0.00031.491810.0003
Override
Cache load0.00063.693910.0006
General
dbfile0.003118.200180.0004
String conversion0.00000.064240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs