Splitting long news and blog entries into multiple pages:
Pagify version 1.0 now offers the page splitting as a separate function to be used in other plugins.
It shouldn't be too hard to include this in the news manager:
Otherwise, if you need paging of long content, you can always use the basic solution without News Manager as described here ;-)
P.S. The new I18N Search plugin also allows other plugins to add their content to the full text index and include it in searches.
Pagify version 1.0 now offers the page splitting as a separate function to be used in other plugins.
It shouldn't be too hard to include this in the news manager:
Code:
...
# this is the content of the news item, as it would be output to the page:
$content = ...;
...
# determine somehow (e.g. configuration setting), if page splitting is requested
if (function_exists('return_pagify_content') && ...) {
# get page number from URL, e.g.
$pageNum = @$_GET['page'];
# determine requested page length (e.g. configuration setting)
$pageSize = ...;
# what is the link to this news/blog item? Include place holder %PAGE% for page number
$link = 'http://server/link/to/my/news/item?page=%PAGE%';
# split content into pages and get content for current page with page navigation
$content = return_pagify_content($content, $pageSize, $pageNum, $link);
...
}
...
Otherwise, if you need paging of long content, you can always use the basic solution without News Manager as described here ;-)
P.S. The new I18N Search plugin also allows other plugins to add their content to the full text index and include it in searches.