I am using a modified vesion of PhilJ's advanced Speedbar.
My goal is to get each TAB to HIGHLIGHT if it is the ACTIVE location. This is something PhilJ built into the code, but I decided to not use the {section name=sb loop=$speed_bar} -- rather, I am using a hard coded version for all my static pages. SO -- this killed the highlight active tab feature (excpet for the hard coded pages that are obvious...)
So, for example, my home page link looks like this:
http://www.mommymakeup.com
Code:
<li {if $main eq "catalog" && $current_category.category eq ""}id="current"{/if}><a href="/" title="Home"><span>Home</span></a>
</li>
I was able to figure out how to get the Gift Certificates link to work:
Code:
<li {if $main eq "giftcert"}id="current"{/if}><a href="/giftcert.php" title="Gift Certificates"><span>Gift Certificates</span></a>
</li>
Now, my goal is to have the rest of my static pages tell smarty who they are, so that I can trap for {if $main eq "current-page-name"}id="current"{/if}
For example, how would I take this link and tell smarty that it is the current page?
Code:
<li><a href="/help/tips-n-tricks.html" title="Tips-n-Tricks"><span>Tips-n-Tricks</span></a>
</li>
Note: I am using
CDSEO for static pages, and we no longer use pages.php -- it has been replaced with the CDSEO equivalent, for my store it is named help.php
I think I need to assign some kind of var to each static page, so that I can trap for it and use smarty in the speedbar. Can someone please share how this is done?
Another example: My page "tips-n-tricks.html" is actually a static embedded page, /pages.php?pageid=3 -- BUT CDSEO allows me to call it, tips-n-tricks.html -- my question is: HOW CAN I tell this page that I want it to be called (to smarty) $tipsntricks ?
Phil? Jon?
Thanks!
Jeremy