PDA

View Full Version : How I can put the first tab Used?



Avelino Fernandez
January 22, 2016, 08:34 AM
Hi,

theme auto_flatty
How I can put the first tab Used?
Now I have new default the first tab.

Thank you.

Denis Raketic
February 3, 2016, 07:34 PM
i need to know too ?

Viktor
February 5, 2016, 04:06 AM
Hello All,

We will try to add this function in next version but now you can solve it in code.

Go to ftp://templates>>your_template>>tpl>>blocks>>side_bar_search.tpl

find code at line ~8:



{foreach from=$search_forms item='search_form'


and replace to:



{foreach from=$search_forms|@array_reverse item='search_form'


then find code at line ~16:


{foreach from=$search_forms item='search_form' key='sf_key' name='sformsF'}

and replace to:

{foreach from=$search_forms|@array_reverse item='search_form' key='sf_key' name='sformsF'}

save and check again.

Mahmoud Khedr
February 5, 2016, 12:45 PM
Hello Viktor
i followed your instruction but it doesn't work

Viktor
February 5, 2016, 01:50 PM
Hello Mahmoud,

For your template you should change other files :)

go to ftp:templates>>your_template>>tpl>>blocks>>horizontal_search.tpl


find code:


{foreach from=$search_forms item='search_form' key='sf_key' name='stabsF'}

and replace to:

{foreach from=$search_forms|@array_reverse item='search_form' key='sf_key' name='stabsF'}

then after some lines find code:

{foreach from=$search_forms item='search_form' key='sf_key' name='sformsF'}

and replace to:

{foreach from=$search_forms|@array_reverse item='search_form' key='sf_key' name='sformsF'}

save and check again.

Denis Raketic
February 5, 2016, 02:18 PM
Thanks Viktor :)

Mahmoud Khedr
February 5, 2016, 02:27 PM
thanks Viktor it works now :)

Avelino Fernandez
February 11, 2016, 03:28 PM
Thanks Viktor