redirect_incat

Redirect the admin editor to the next or previous resource in a category.

Pass id and cat_id; set is_prev to select the previous resource instead of the next one. Navigation wraps at either end of the category. When no other resource exists, the action displays a notification.

For example:

{% button text="Next" action={admin_redirect_incat id=id cat_id=q.qcat} %}

Edit on GitHub

Referred by

Category

Actions

Browser actions that templates attach to events with Zotonic's wiring system.