Module

EE 1
EE 2
Structure Channel

Developer

Mark Croxton

3rd Party (Free)

Download v1.0.1

Compatibility

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

Requirements

  • jQuery for the Control Panel

Tags

A replacement for the Channel module for use with Structure.

Description

Structure Channel is a drop-in replacement for the Channel module which generates query string pagination (?p=1) rather than using URI segments /P1/

Why on earth would you want to do this?

If you are using Structure or the Pages module with Freebie or .htaccess mod_rewrite rules to create custom URLs, then you will quickly find that the native pagination doesn’t work.

Installation

1. Copy the folder structure_channel to ./system/expressionengine/third_party/
2. In the Control Panel, go to Add-Ons > Modules and click the Install link for Structure Channel

Parameters

Exactly the same as the Channel module, with one additional (optional) parameter ‘pagination_param’. This determines the parameter name used in the pagination query string. By default this is ‘p’.

Sample usage


{exp:structure_channel:entries 
    channel="my_channel" 
    disable="member_data|categories" 
    dynamic="no" 
    limit="10" 
    paginate="bottom" 
    paginate_base="/my/custom/uri/?" 
    pagination_param="page"
}

    {title} 
{paginate} Page {current_page} of {total_pages} {pagination_links} {if previous_page} Previous Page   {/if} {if next_page} Next Page {/if} {/paginate} {if no_results} Sorry, no entries were found. {/if} {/exp:structure_channel:entries}

Download Structure Channel

EE Version Downloads Add-On Version Release Date
2.+ Download 1.0.1 2012-04-18 12:23 PM

This entry was last updated April 18, 2012, 1:27 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!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!