if category_id equals number - Joomla! Forum - community, help and support
hi guys,
i'm newbie when comes php , programming , cannot seem right. i'm trying place div on specific category browse page in joomla (virtuemart) , want this:
if category_id = 16, echo div. else, display nothing.
my code not work:
can please me figure out did wrong? thanx lot.
i'm newbie when comes php , programming , cannot seem right. i'm trying place div on specific category browse page in joomla (virtuemart) , want this:
if category_id = 16, echo div. else, display nothing.
my code not work:
code: select all
<?php
if ($this->category_id == "16"]) {echo ('<div>bbb</div>');} else {}
?>can please me figure out did wrong? thanx lot.
Comments
Post a Comment