techmistress Posted February 20, 2009 Share Posted February 20, 2009 I am going crazy trying to figure out this problem... I double checked everything, and can't find an error. Here's the problem: I have a main category: "Learning Center" This cat has 5 subs: Solar Wind Hydro Geothermal How-To In my viewCat inc file, I have the following code: if($_GET[catId][cat_type] == 1) { $view_cat = new XTemplate ("content".CC_DS."viewArticleCat.tpl"); }else{ $view_cat = new XTemplate ("content".CC_DS."viewCat.tpl"); } $view_cat->assign("LANG_DIR_LOC", $lang['viewCat']['location']); In the database the main cat and subcats all have a "cat_type" of 1, and the subs have the same father id, just the way it should be. Here's the weird thing - the new template comes up just fine with all of the cats except the first two (solar and wind) - they just keep using the regular template, even though their 'cat_type' is set to 1 just like the others, and their father id is the same as the others. I tried clearing the cache folder, and clearing/closing my browser but no luck. What would be doing this? I'm going crazy and PLEADING with someone to tell me what the problem might be... Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.