Giter VIP home page Giter VIP logo

concrete5_ajax_page_list's Introduction

concrete5_ajax_page_list

An AJAXified page list block for concrete5. Navigate a Page List block's pages and apply attribute filters without reloading the whole page.

Tested with v5.6 but may work with earlier versions.

Installation

  1. Download the package ZIP file
  2. Extract the concrete5_ajax_page_list-master directory and rename it to ajax_page_list
  3. Upload to your concrete5 installation's /packages directory
  4. Install the package through the Extend concrete5 page of the Dashboard
  5. Select the Ajax Page List custom template for your Page List block
  6. Have a nice cup of tea :)

Filtering by custom select attributes

No configuration beyond the above is required to render and paginate the Page List (this is the default behaviour). concrete5's Page List objects are powerful things though, and sometimes we want to filter them using custom select attributes.

To enable filtering by custom select attributes:

  1. Create your select attributes in the Page Attributes page of the Dashboard and note the handles you give each attribute.

  2. Add your custom select attributes' handles to the $filter_attributes array near the top of the ajax_page_list.php custom template file (which can be found in the /packages/ajax_page_list/blocks/page_list directory):

For example, if your select attributes' handles are my_colour_attribute and my_size_attribute, the $filter_attributes array will look like this:

$filter_attributes = array('my_colour_attribute', 'my_size_attribute');

The package will automatically render each attribute's options as links above the AJAXified Page List. Note: The filters are cumulative, i.e. the Page List can filter by more than one select attribute simultaneously.

Screenshots

Click the thumbnails for larger versions.

###No filters -- just paging


###Filters displayed but not applied


###Filters applied

concrete5_ajax_page_list's People

Contributors

melat0nin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.