In the banners.php file, you can insert arbitrary PHP-code, which will display banners depending on the current category.
The identifier of each category is displayed in the section «Categories Management» of the administrator interface.
To get the identifier of the current category, use:
$cid = $CNCAT["page"]["cid"];
Then, display banner depending on the category, for example:
if ($cid==10)
{
$CNCAT["banner"]["banner_identifier"] =<<<CNCAT_40_BANNER
banner code for the category 10
CNCAT_40_BANNER;
}
else
banner code for other categories
Brak komentarzy
Dodaj komentarz:
Komentarz:
Twoja ocena: - Nie - 1 2 3 4 5 6 7 8 9 10