Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

Ajax Sort and Order with ExpressionEngine

In a two part series at Metaq, Terris Kremer wrote up how to sort and order data with ExpressionEngine and Ajax. Terris takes a regular ol’ table of EE entries and makes them sortable.

The first step to making something work with Ajax is to make sure it works without Ajax. If a user doesn’t have JavaScript enabled I want to be sure they can still sort entries. Those users will just have to load the entire page.

Let’s start with a basic template that has a header, footer and content section.

He includes plenty of code snippets and explanations so you can adapt the code to your situation. The first article just gets the basics working…no Ajax implementation yet. In the second article Terris tackles making the entries sortable without requiring a page load.

If this type of functionality is new to you or you need it on an upcoming project, both articles are a good reference.

Posted on May 22, 2012 by Ryan Irelan

Filed Under: Development Tools, ExpressionEngine 2