Jump to content

Can someone Please Help check my code?


techmistress

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...