| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Highlight current page in speedbar | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
NOt exactky sure what you want to accomplish. What do you mean highlight??
__________________
xcart 5.1.2 |
|||||||||
#22
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
Hi,
For example when on the FAQ's (static) page I'd like to make the link in the main nav have a light green background. Perhaps by adding a class to the link and using CSS to style its background. Please look at my link. http://www.urlgone.com/0feb23/
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
#23
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
ok gotcha. Yes there is a way.
{if $page_data.pageid = '2'}class="current"{/if} replace the 2 with your faq page id class.
__________________
xcart 5.1.2 |
|||||||||
#24
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
Thanks ARW VISIONS.
But that applies the class to all the links — as the if statement is true each time the loop that generates the menu is cycled through. I would like just the link that applies to the current to have the class.
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
#25
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
ok how about this....
{if $page_data.pageid eq '2' && $sb.title eq 'Test'}style="color:#cc0000"{/if} replace with your data.
__________________
xcart 5.1.2 |
|||||||||
#26
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
{if $page_data.title eq $sb.title}style="color:#cc0000"{/if}
would work for all static pages as long as the page title and the speed bar title are the same.
__________________
xcart 5.1.2 |
|||||||||
#27
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
Quote:
This seems to do the trick. Thank you very much. Going to be a bugger if the client renames the pages though! I thought this sort of functionality would be a standard feature for designers to latch onto. Maybe Ill suggest as a feature request. Thanks again.
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
#28
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
Ok - now I have to feature out the dynamic pages Eg. Contact
help.php?section=contactus Do these page types have ID or titles?
__________________
Latest X-Cart project: www.rawlisa.co.uk ≈ Designed & developed by Believe in╝ X-Cart Gold v4.4.3 |
|||||||||
#29
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
You can use "main" and "section" for help pages
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#30
|
|||||||||
|
|||||||||
Re: Highlight current page in speedbar
{if $page_data.title eq $sb.title}style="color:#cc0000"{/if} if u do this, the as long as speed bar title and page title match its good.
__________________
xcart 5.1.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|