PDA


View Full Version : Integrating CMS


Lionel
05-22-2005, 01:02 AM
I am trying to display a different left menu for one specific category and its children.

In browselinks.php I did at the very top, 10 being the main category and * for anything else that comes after, but I can't get it to work. Is that possible at all?

define('VBA_PORTAL', true);
if (in_array($catinfo['parentlist']='*,10'))
{
define('VBA_PAGE', 'speciallinks');
}
else {
define('VBA_PAGE', 'linksdirectory');
}

and also tried at the bottom right after
$minlimit = number_format($minlimit);
$maxlimit = number_format($maxlimit);
$countlinks['count'] = number_format($countlinks['count']);

$myspeciallinks =array($catinfo['parentlist']='*,10');
define('VBA_PORTAL', true);
if (in_array('myapeciallinks'))
{
define('VBA_PAGE', 'speciallinks');
}
else {
define('VBA_PAGE', 'linksdirectory');
}

Brian
05-22-2005, 01:44 PM
The only way to do it would be something like this at the very top of the file:
define('VBA_PORTAL', true);
if (in_array($_REQUEST['catid'], array(X, Y, Z)))
{
define('VBA_PAGE', 'speciallinks');
}
else
{
define('VBA_PAGE', 'linksdirectory');
}

Then replace X, Y, Z there with each categoryid.

Lionel
05-22-2005, 02:47 PM
Sorry, that does not work.

Lionel
05-22-2005, 02:53 PM
got it to work, thanks. replaced catid by "c"

Brian
05-22-2005, 03:25 PM
You may want to dupliacate that code for $_REQUEST['catid'] as well. For the most part people should be getting to the category with c= in the URL, but there may be some instanaces where catid= will be used.

Lionel
05-22-2005, 03:31 PM
Yes I just realized that after you mentioned it.