Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix broken links in pagination bar (#24)
* adding twig arbitrary collection support * complete version Oops, some code missing from 1st version. * set ignore_url_params to false * twig pagination latest version * specify which url params to ignore. others will be unaffected. * bugfix: default argument now working. * removed unnecessary property from yaml * copy error corrected * copy error corrected * typecast parameter to array before iterating Typecasting the parameter to array prevents two types of errors with the foreach construct: - unset variable is converted to empty array - non array types are converted to array * check isset() necessary to prevent exception This check - which was unjustly removed in a previous version - is still necessary to prevent index error. $params[‘ignore_url_params’] is not set when paginating via the onCollectionProcessed event. * twig function usage added to README * added code blocks to README * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * fix broken pagination links Replacing the double slash from the scheme creates a malformed url and breaks functionality in some browsers. Fix: put base_url outside brackets, it presumably doesn’t need ‘fixing’.
- Loading branch information