Plugin

EE 1
EE 2
Reverse These!

Developer

Laisvunas

3rd Party (Commercial)
Current Version: 1.0

License Agreement

Buy Now!

$12.00
Qty:

Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • jQuery for the Control Panel

Tags

This plugin allows you to reverse the order of a series of items.

Why such functionality is needed?

For example, you may need to display 10 most recent comments in ascending order. But exp:comment:entries tag
allows only to set “sort” parameter value either to “asc” or “desc”. So, after setting “orderby” parameter to “date”
and “sort” to “desc” you will get 10 most recent comments but they will be ordered not as you need. To order them as needed
their order should be reversed. Here Reverse This plugin comes to your help.

PARAMETERS

No parameters.

VARIABLE PAIR

1) {reverse_these_item}{/reverse_these_item} - any item in the series of items which should be reversed must be wrapped
with this variable pair.

USAGE

This code will output latest 10 comments in ascending order.

{exp:reverse_these}

{exp:comment_entries entry_id="531" limit="10" orderby="date" sort="desc"}

{reverse_these_item}
{count}{comment}<br>
{/reverse_these_item}

{/exp:comment_entries}

{/exp:reverse_these}

Reverse These! Links

This entry was last updated August 28, 2011, 4:19 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

1 Review:

ghd_ 08.28.11

54321

Lifesaver!

I was having an issue with EE’s native multiple orderby= & sort= (http://expressionengine.com/user_guide/modules/channel/parameters.html#par_orderby) .

This sorted me out!