From: yawstick <yaw...@ch...> - 2005-01-19 22:53:16
|
Thanks for your help I've been playing with your example but have not been able to get it to work. I have the following in the thempe.php from your example. $THEME["EXAMPLE"] = $_SESSION['OBJ_user']->isUser() ; $THEME["user"] = $_SESSION["SES_PM_page"]->id ; $THEME["category"] = $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid) ; // get the page id: $my_pageid = $_SESSION["SES_PM_page"]->id; // get the category of this page: $my_category = $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid); switch ($my_category){ case "3": $my_style = "page1.css"; break; case "4": $my_style = "page2.css"; break; default: $my_style = "style.css"; } // output it to the template... $THEME["my_style"] = $my_style; I added some things trying to trouble shoot it. The category seems to be coming back empty even though I have added several categories and set them in the page. The case "3" and case "4" are from examining the data in the mod_catcat_catgegories table. Where would you find the variables like $_SESSION["OBJ_fatcat"]->getElementCatId($my_pageid) Thanks Paul |