Category management
Version 3.0 of ClassAd introduces a structured category model, which was updated and complely re-written for version 4.0. Their are two different modes:
- Structured category model (recommended / categorys and subcategories, organized as tree-structures)
- Classic category model (flat model)
One should decide on which model should be used at the beginning of the installation - best before creating categories. The following points characterize the different models:
- Classic category model / Flat model
The flat model works with categories of equal rights. The categories are displayed one after each other incl. category logo, description and the ad counter. The sorting order can be changed in the configuration file inc/config.inc.php.
- Structured category model
The structured category model works with categories subordinated to another category or the root in a multilevel way (category trees). The categories are displayed in a flexible way - sorting order and column amount can be changed to the personal needs in the configuration file inc/config.inc.php.
Small ClassAd installations should work well with a flat category model, larger markets with a lot of different categories should use the structured model.
In the configuration file inc/config.inc.php are parameters to fine tune the behavior and layout:
Variable | Description |
---|---|
$OP_SIMPLE_CATS | if false, the structured category model is used, otherwise you decide to use the flat model |
$OP_COMPLEX_CATS _COLS |
If structured model is used, this parameter defines how many columns should be used (reasonable value at between 1 and 5) |
$OP_COMPLEX_CATS _MAXSUB |
If structured model is used, this parameter defines how many subcategories are displayed below the main category. To display all subcategories set the parameter to 999. (default: 5) |
$OP_COMPLEX_CATS _SUB_ART_COUNT |
if structured model is used, this parameter defines whether articles in sub categories are counted or not |
$OP_COMPLEX_CATS |
if structured model is used, this parameter defines the sorting order of categories. '1' means row-wise filling, '2' column-wise filling |