Thursday 15 January 2015

Django endless pagination 2 settings -


I am using the plugin which is called the endogenous paging of the degena and it is working well. The main settings for paging are specified in settings. What happens if you want to score 3 pages for any other template on another endorsement page?

This is the first setting, but what if I want to specify for any other template, 3 pages per page?

How can this be done?

  ENDLESS_PAGINATION_PER_PAGE = 2 ENDLESS_PAGINATION_PREVIOUS_LABEL = 'previous' ENDLESS_PAGINATION_NEXT_LABEL = 'Next' ENDLESS_PAGINATION_PER_PAGE = 3 ENDLESS_PAGINATION_PREVIOUS_LABEL = 'previous' ENDLESS_PAGINATION_NEXT_LABEL = 'Next'  

If you see, you will see that it is specifically mentioned that you can override the value Templatetag:

  # How many objects are usually a Pages are displayed in # (overwritten by templatetag). It is easy to specify how many objects you want to display: PER_PAGE = getattr (settings, 'ENDLESS_PAGINATION_PER_PAGE', 10)   

  Pageant {% 20 entries%}    

No comments:

Post a Comment