![]() |
V 4.2 Speed Bar generated in reverse order
I'm working on a store using v 4.2. I'm using the speed bar to create a static navigation for the site. For some reason, the list of pages/links gets generated in reverse order and I can't figure out how to correct it.
The code in my home.tpl file looks like this: Code:
{if $speed_bar} And it generates this: Code:
<ul class="subnav"> In my x-cart admin, Home is Position 10, About Us is Position 20, Questions? is Position 30, etc. Is there a setting in the Admin that I need to change to put the list in the right order? |
Re: V 4.2 Speed Bar generated in reverse order
it's feature(bug?) of 4.2
It's original skin uses float:right for tabs so they should be putted on the page in reverse order. you can list tabs in reverse order in template: Code:
{section loop=$speed_bar name=sb step=-1} |
Re: V 4.2 Speed Bar generated in reverse order
That is an odd feature (?). Thanks Victor!
|
Re: V 4.2 Speed Bar generated in reverse order
I've got this problem happening too... the speed bar appears in reverse order on the store front, but in the ADMIN section, the speed bar appears in the correct (original) order! What's even stranger is that both the store front and the admin section both use the same customer/head.tpl code...
My pages don't use CSS float:right. We use CSS text-align:right, so that should remove the need for the speed bar items to be placed in reverse order. Observation: It almost looks as though the speed bar items are being placed by code into $speed_bar in reverse order for the store front, but placed into $speed_bar in normal (original) order. Is that correct? If so, that would suggest that $speed_bar is created in two separate locations in the code, and one has been altered to compensate for the CSS float:right instruction. Where can I find one (or both) of the $speed_bar definitions to fix it up? Cheers, Dan |
Re: V 4.2 Speed Bar generated in reverse order
Customers header with speedbar is in the skin1/customer/head.tpl
Admins one is in skin1/head.tpl change foreach cycle to section in template according to post #2 |
All times are GMT -8. The time now is 04:48 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.