Home « Server software «
Documentation: sections/index.php
sections/index.php - The index page for sections
At any YACS system, each and every page is anchored to one (yes, only one) section. You can view sections as the top-level containers of information published at your site.Compared to categories, sections feature:
* access rules - you can restrict access only to some sections to members and/or to associates
* overlay extension - to create a cookbook, create a section and add the 'recipe' overlay
* diverging rendering - apply any skin to any section
For a more comprehensive description of sections, you should check the database abstraction script at sections/sections.php.
This page list regular sections to any surfer. Here, regular means that these sections are not hidden and that they have not hit some deadline.
For associates, this index has a second part to list hidden or dead sections. Hidden sections are used to store special pages such as menus, covers, navigation boxes or extra boxes.
Following restrictions apply:
- anonymous users can see only active sections (the 'active' field == 'Y')
- members can see active and restricted sections ('active field == 'Y' or 'R')
- associates can see all sections
The main menu for this page has a command to create a new section, if necessary. It also has navigation links to browse sections by page, for sites that have numerous sections.
Sections are displayed using the default 2-column layout. This script also supports the 'boxesandarrows' layout, if this has been configured at skins/configure.php.
Because this script is also the site map, it has an extra box with helpful links, and another extra box to list monthly publications. These shortcuts will help surfers to locate some page rapidly.
Accept following invocations:
- index.php (view the 20 top sections)
- index.php/2 (view sections 41 to 60)
- index.php?page=2 (view sections 41 to 60)
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
Testeurs:
- Eoin
Reste à faire:
- allow for a freemind version