Forums / Developer / how to add a new section
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/
Monday 07 April 2008 4:15:59 am
thanks Xavier Gouley.bye