_listItem active state

24 posts by 2 authors in: Forums > CMS Builder
Last Post: May 25, 2010   (RSS)

Re: [dsternalski] _listItem active state

By Jason - May 25, 2010

Hi,

If you could send me an updated file and a link to your output, I can take a look at it.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By dsternalski - May 25, 2010

Hi,

Just to let you know that I've managed to fix this using a couple of spans.

<?php foreach ($allCurriculumRecords as $categoryRecord): ?>
<?php if(!$categoryRecord['featureSelect']) : ?>
<?php echo $categoryRecord['_listItemStart']; ?>
<?php if($thisPage=="curriculum"): ?>
<span class="currentpageEnd"></span>
<span class="currentpage"><a href="<?php echo $categoryRecord['_link'] ?>"><?php echo $categoryRecord['name'] ?></a></span>
<?php else: ?>
<a href="<?php echo $categoryRecord['_link'] ?>"><?php echo $categoryRecord['name'] ?></a>
<?php endif ?>
<?php echo $categoryRecord['_listItemEnd'] ?>
<?php endif ?>
<?php endforeach; ?>



span.currentpage a {background:#560a0b url(../images/buttonLeftHover.gif) no-repeat top left; color:#ffffff;}
span.currentpageEnd {width:15px; height:38px; position:absolute; right:0; background:#560a0b url(../images/buttonRightHover.gif) no-repeat top right;}

Thank you for all your help!!

Re: [dsternalski] _listItem active state

By Jason - May 25, 2010

Awesome! Glad that's working for you.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/