View Single Post
  #8  
Old 02-04-2007, 07:40 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: PhilJ's Advanced Speedbar - Smarty question re: id="current" - $main eq "X"

Quote:
Originally Posted by PhilJ
Does this work?

Code:
{if $main eq "pages" and $page_data.pageid eq "3"}id="current"{/if}

The mod does cater for static pages, it's explained in install.txt

Yeah baby! You rock!!

I read through install.txt again, but I missed this...

I may have a very old version, Phil... My copy of Speedbar was from when you were selling it (not the free version). All I have in my install.txt is:

Quote:
When adding a static page to the speedbar, ensure the 'POS.' value for both speedbar AND static page, are the same value (order position).

eg.
About Us Speedbar Link - Sort Position 10
About Us Static Page - Sort Position 10

My issue is that I am not using the speedbar "automatic" fucntions -- and I am hard coding each link, so this does not apply. If I use the automatic code, I lose some flexibility (and CDSEO breaks) - so to keep my URLs that CDSEO makes for me, I chose to hard code the links. AND I like the flexibility. I gladly accept the responsibility that comes with hard-coding links.

THANK YOU for coming up with this solution!

PS -- how did you know this smarty var ($page_data.pageid eq) ? How could I have found this for myself? Thanks!

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote