Lets you paginate an entry with table of contents (page titles) or whatever you wan to call it.
In an entry just put: {pagebreak:Some title} everywhere you would want a pagebreak, the plugin will fetch the title from the variable.
Parameters:
-current=”“
-The content of the parameter replaces the {pgnt_current} variable
-Ex. current=“class=‘current’” (remember to balance quotes)
Variable Pairs:
-{pgnt_text} {/pgnt_text}
-Place in between these variables the text you would want paginated. (REQUIRED)
-{pgnt_titles} {/pgnt_titles}
-Place in between these variables <li> or <select> etc
Conditionals:
-{if pgnt_pages} {/if}
-If there are any pages. (sometimes you only have an one page article)
-{if pgnt_prev_page} {/if}
-If there is a previous page
-{if pgnt_next_page} {/if}
-If there is a next page
Variables
-{pgnt_url}
-The full url to the corresponding page
-Will only work inside {pgnt_titles} {/pgnt_titles}
-{pgnt_title}
-The title of the page that was fetched from the to be paginated text.
-Will only work inside {pgnt_titles} {/pgnt_titles}
-{pgnt_current}
-If there current item is the current page. (you need to use the current=”“ paramater)
-Will only work inside {pgnt_titles} {/pgnt_titles}
-{pgnt_current_page_title}
-The page title of the current page
-Will work ANYWHERE inside your template, even outside the plugin tag.
-{pgnt_prev_page_title}
-The title of the previous page
-Advisable to use with {if pgnt_prev_page} {/if}
-{pgnt_prev_page_url}
-The url of the previous page
-Advisable to use with {if pgnt_prev_page} {/if}
-{pgnt_next_page_title}
-The title of the next page
-Advisable to use with {if pgnt_next_page} {/if}
-{pgnt_next_page_url}
-The url of the next page
-Advisable to use with {if pgnt_next_page} {/if}
Simple Example:
{exp:paginatee}
<h1>{pgnt_current_page_title}</h1>
{pgnt_text}
{body}
{/pgnt_text}
<ul>
{pgnt_titles}
<li><a href="{pgnt_url}" title="Page {pgnt_title}">{pgnt_title}</a></li>
{/pgnt_titles}
</ul>
{/exp:paginatee}
Full Blown Example:
<html>
<head><title>{title}: {pgnt_current_page_title} </title></head>
<body>
{exp:weblog:entries weblob="default" url_title="{segment_3}"}
<h1>{title}: {pgnt_current_page_title}</h1>
{exp:paginatee current="class='current'"}
{pgnt_text}
{body}
{/pgnt_text}
{if pgnt_pages}
<ul>
{pgnt_titles}
<li><a href="{pgnt_url}" title="Page {pgnt_title}" {pgnt_current}>{pgnt_title}</a></li>
{/pgnt_titles}
</ul>
{/if}
{if pgnt_prev_page}
Previous Page: <a href="{pgnt_prev_page_url}">{pgnt_prev_page_title}</a>
{/if}
{if pgnt_next_page}
Next Page: <a href="{pgnt_next_page_url}">{pgnt_next_page_title}</a>
{/if}
{/exp:paginatee}
{/exp:weblog:entries}
</body>
</html>
Example of paginated text with titles.:
Toms Hardware
