Re: [dsternalski] _listItem active state
Hi,
I noticed that in your page navigation.php, you set a variable called "$thisPage" The only time on the page that this variable is given a value is this line:
<?php $thisPage = "curriculum"; ?>
Is there a reason why you're setting this in the navigation page? I'm assuming that navigation.php is an include file, so it may be better to set this variable in the page that includes it just before the include statement.
Also, if we set this variable to be the same as a name in the record, we could replace the "if" statement we're currently using with this:
<?php if($categoryRecord['_hasParent'] == 0 && $categoryRecord['name']==$thisPage): ?>
Also not that this currently, you're only using this "if" statement in the loop that is outputting $allCurriculumRecords. You may want to also add it to the other loops.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/