Category Sorting on Front-End

  • Posts: 7

Category Sorting on Front-End was created by AdinaG

I have set a specific order for my many categories in the backend but when I go to the frontend for the user, the dropdown box where they submit their videos the "Select Category" is listed in the order that they were added.

Can we get this to keep the sort order set in backend too?
9 years 3 months ago #1016

Please Log in or Create an account to join the conversation.

Replied by Administrator on topic Category Sorting on Front-End

Are you a PRO user? If yes, kindly mail me your FTP access details to This email address is being protected from spambots. You need JavaScript enabled to view it.. So, we can customize this for you.
Last edit: 9 years 3 months ago by Administrator.
9 years 3 months ago #1018

Please Log in or Create an account to join the conversation.

  • Posts: 7

Replied by AdinaG on topic Category Sorting on Front-End

No, I am not a Pro yet.

But unfortunately the categories do not list in alphabetical order either, that was why I tried to reorder them.

As you can see from the shot below....

9 years 3 months ago #1020
Attachments:

Please Log in or Create an account to join the conversation.

Replied by Administrator on topic Category Sorting on Front-End

- Open {root}/components/com_yendifvideoshare/models/user.php

- Search for $query = 'SELECT * FROM #__yendifvideoshare_categories WHERE published=1';

- Replace the line as $query = 'SELECT * FROM #__yendifvideoshare_categories WHERE published=1 ORDER BY name ASC';

- Save the changes.

That's it. Hope, this solved your issue!!!
9 years 3 months ago #1021

Please Log in or Create an account to join the conversation.

  • Posts: 7

Replied by AdinaG on topic Category Sorting on Front-End

YEP! Fixed the problem!

Thank you!
9 years 3 months ago #1022

Please Log in or Create an account to join the conversation.

  • Posts: 3

Replied by thomd on topic Category Sorting on Front-End

Hi, I am a new user of this tool and I want to sort the Categories in the Front End as I sorted them in the backend. COuld you please sahre the correct code to modify the user.php?
I tried this one without success:
$query = 'SELECT * FROM #__yendifvideoshare_categories WHERE published=1 ORDER BY ordering'

Txs, Thomas
4 years 8 months ago #2308

Please Log in or Create an account to join the conversation.

Time to create page: 0.096 seconds

Business Address

PLUGINSWARE INTERACTIVE PVT LTD
Door No 2A, Venkateshwara Nagar,
1st Main Road, Velachery, Chennai,
Tamilnadu, India
Pincode: 600042
© 2013 - 2024 Pluginsware Interactive Private Limited. All Rights Reserved. The Joomla! name and logo is used under a limited license granted in the United States and other countries.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.