Version: 1.4.1

Author: Martin Vlcek

Date: 2023.07.22

Category: Content&Authoring

More on: GetSimple CMS

More on: GitHub

More on: Support Forum


Download...

Plugin PAGIFY


Description:


This plugin splits a page into parts of x bytes and provides links for the other parts. It expects a reasonable valid page content and splits only between paragraphs.

Installation:


Unpack into plugins directory.

For fancy URLs, put the following line into gsconfig.php

define('PAGIFY_SEPARATOR',';');

and add a rule like the following to the root .htaccess

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule /?([A-Za-z0-9_-]+);(d+)/?$ index.php?id=$1&page=$2 [QSA,L]

USAGE:

Specify a tag/keyword

_pagify x

(x = size of parts in bytes) on your page (1.1+: do not specify x to split on hr)

or call

pagify_set_size(x)

from your template.

x can contain a unit, e.g. '1000' or '1000b' (1000 bytes), '20w' (20 words), 100c (100 characters), 3p (3 paragraphs = top level tags)

To set the number of pages to display in the navigation, call

pagify_set_size(null, 9)

from your template (here for 9 pages, use odd numbers).

Cookies allow us to offer our services. By using our services, you accept our use of cookies.  Accept