use_next_page_article

Purpose:

To enable next page article feature in entry editor.


Type:

Optional.


Example:

'use_next_page_article': True,

Usage:

Articles created as subpages will have extra property in Bootstrap object called body_pager with 4 additional information:

body_pager: {
    next_page: 2,
    next_story_link : null,
    post_url : "http://example.com/testing-next-page-788.html?draft=1&page=",
    prev_page: 0
},

You can use these data in mustache files when rendering article page. Here is example how to create buttons for previous and next page and also adding link to next article which is rendered only on last page of article.

{{#body_pager}}
<div class="article__pages">
    {{#prev_page}}<a href="{{post_url}}{{prev_page}}" class="pages__btn pages__btn-prev">< Prev</a>{{/prev_page}}
    {{#next_page}}<a href="{{post_url}}{{next_page}}" class="pages__btn pages__btn-next"></a>{{/next_page}}
    {{#next_story_link}}<a href="{{next_story_link}}" class="pages__btn pages__last">Next Story ></a>{{/next_story_link}}
</div>
{{/body_pager}}
Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 2 yrs agoLast active
  • 185Views
  • 1 Following