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.

Share:
Share on Facebook0

Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

Leave a Reply

Your email address will not be published. Required fields are marked *

Most Popular Posts

What is JavaScript Hoisting

Posted on 1 year ago

Bhumi

MySQL FULLTEXT Index and Search

Posted on 1 year ago

Bhumi

HTML5 Geolocation API with Example

Updated 17 years ago

Bhumi

Overview of Views in MySQL

Updated 17 years ago

Bhumi

What is Closure in JavaScript?

Updated 17 years ago

Bhumi

How to use JavaScript Promise API?

Updated 17 years ago

Bhumi

Type Hinting Callable Functions in PHP

Updated 17 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 1 year ago

Bhumi

The Reader’s Poll – August 2014

Posted on 2 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 2 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 3 years ago

Bhumi