Back to Top

How to add Sorting columns in Joomla

Recently I am working on one project and I wanted to provide sorting save and edit option to the title in Joomla website.

In this Joomla, Nivoslider plugin used for the slider and I wanted to add sorting option to the ordering field.so I have just checked and get that same functionality provided by article section in Joomla so I have checked the code and use it.

Let’s see how I use the code to develop edit and save sorting option in Joomla.

First of all, I have replaced two variable defined in top of the page are $canOrder and $saveOrder and added $params

with below line of code

Next, I have replaced the title with a link so when user clicks on it, save option will be enabled.Let’s see below line of code

replaced with following line of code

then after, Go to the middle of the page where the loop is used there were some variables which are just defined as true like

Same here, replace above variables with below line of code

That’s about it. I want to say a huge thanks to various sources around the web that I visited while trying to evaluate how to create this code. I’m sure someone there has done this already & probably done it better, but I just wanted to share how I did it and hopefully it will help someone

As always a big thank you for reading and I hope this post was useful .Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

The Reader’s Poll – June 2014

Posted on 9 years ago

Bhumi

What is Closure in JavaScript?

Posted on 6 years ago

Bhumi