PDA

View Full Version : How do I change the order of the tabs for listings?



Foxpin Inc.
October 4, 2012, 06:22 PM
I am trying to change the order of the tabs on the listing page. (Please see attached picture.) Currently, the tabs read "listing" > "profile" > "video" > "Tell a friend." I would like to change the order so that maybe "tell a friend" is first.

How can I do that?

Thanks!

Chris Brown
October 4, 2012, 10:01 PM
Gonna have a guess at editing the order of tabs in yourthemetemplate/tpl/controllers/listing_details.tpl

Vladimir
October 31, 2012, 03:41 AM
Hello,

You can try edit it the following way:

- open file: includes/controllers/listing_details.php
- find this code:



$tabs = array(
'listing' => array(
'key' => 'listing',
'name' => $lang['listing']
),
'seller' => array(
'key' => 'seller',
'name' => $lang['seller_info']
),
'video' => array(
'key' => 'video',
'name' => $lang['video']
),
......
);


and change order of tabs in $tabs variable;
for example:



$tabs = array(
'seller' => array(
'key' => 'seller',
'name' => $lang['seller_info']
),
'listing' => array(
'key' => 'listing',
'name' => $lang['listing']
),
'video' => array(
'key' => 'video',
'name' => $lang['video']
),
......
);

Foxpin Inc.
May 6, 2013, 06:58 PM
We tried this, and the order of the tabs changed. HOWEVER, when we refresh the listings details page, the page still loads with the 'listing' tab automatically displayed.

For example, we want to display 'video' automatically when we load the Listing Details page (instead of 'listing'). How do we do this? Thanks.

Morgan Bohman
May 6, 2013, 07:36 PM
Go to Configurations - Video - Autostart yes/no and you'll be fine.

//Morgan

Pete Young
March 10, 2017, 03:32 AM
Digging up the past here but this no longer works in 4.5.2

you have this


/* populate tabs */
$tabs = array(
'listing' => array(
'key' => 'listing',
'name' => $lang['listing']
),
'tell_friend' => array(
'key' => 'tell_friend',
'name' => $lang['tell_friend']
)
);

if ($page_info['Listing_details_inactive'] || !$config['tell_a_friend_tab']) {
unset($tabs['tell_friend']);

I can add in the video option between listing and tell a friend and it works, but it does not blank out if there is no video, I can see there is an if statement for tell a friend but there is no if statement for video ?

how would one write and place that bit of code ? please

Viktor
March 10, 2017, 11:40 AM
Hello Pete,

Since version 4.4 and later the Video tab doesn't exist. Now videos shows together with photos in gallery.

Pete Young
March 10, 2017, 01:00 PM
Hello Pete,

Since version 4.4 and later the Video tab doesn't exist. Now videos shows together with photos in gallery.

I am confused Viktor as the video tab does display and it is not joined with images, will do a quick screen cast to show you and am using 4.5.2



edit, turn screen cast volume down as it has static sound / sorry

it would be nice if it did show in the picture tab and if I could assign it as the the primary picture like in images but I do not think that will happen for a while yet

Viktor
March 11, 2017, 07:57 AM
Hello Pete,

Oh yes for the template: general simple tab: video still exist. I have moved video tab to 2-nd position. Please check on your site.

Pete Young
March 11, 2017, 09:03 AM
Thank You Viktor