Reverse These!

Developer

Laisvunas

3rd Party (Free)


EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

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 created June 23, 2010, 12:26 pm.
This entry was last updated August 28, 2011, 5: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!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

1 Review:

ghd_ 08.28.11

ghd_
Rating - {addon_rating_average}

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!