Home « Server software «
Documentation: categories/index.php
categories/index.php - The index page for categories
Any article can be associated to a variable number of categories.For a more comprehensive description of categories, you should check the database abstraction script at categories/categories.php.
This page list regular categories to any surfer. Here, regular means that these categories are not hidden and that they have not hit some deadline.
For associates, this index has a second part to list hidden or dead categories. Hidden categories are used to locate special items such as featured pages.
Following restrictions apply:
- anonymous users can see only active categories (the 'active' field == 'Y')
- members can see active and restricted categories ('active field == 'Y' or 'R')
- associates can see all categories
The main menu for this page has a command to create a new category, if necessary. It also has navigation links to browse categories by page, for sites that have numerous categories.
Categories are displayed using the default 2-column layout.
Because this script is the top of the categories tree, it has a special extra box with helpful links. If the database has more categories than what can be displayed on a single page, another extra box will be displayed to list popular categories.
Accept following invocations:
- index.php (view the 20 top categories)
- index.php/2 (view categories 41 to 60)
- index.php?page=2 (view categories 41 to 60)
This script is a reference file of this system.
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
Testeurs:
- Eoin
Reste à faire:
- categorize images (NickR)
- categorize files (NickR)
- categorize users
- monthly and weekly categorization on publication do not work anymore (Pat)
- add fame.php to map category popularity, like tags at http://www.43things.com/tags/