Fetches page text and puts it into a global tag
This plugin is a more modern and universal replacement for pagetextbyidn plugin. It provides a function that can be used as CoTemplate callback to fetch text for any page anywhere on site.
The most basic usage for this plugin is a TPL tag looking like this (the example below inserts parsed text for a page with ID = 123):
{PHP|pagetextbyid(123)}
For more advanced usage you can chain callbacks. The following example fetches text for page with ID = 456, strips all HTML tags from it and inserts at most 50 characters of it:
{PHP|pagetextbyid(456)|strip_tags|mb_substr($this, 0, 50)}
I think it could be useful for displaying specific text on differnet parts of the site, providing an easy alternative to having to upload template files if something is changed (can just edit a page instead). I'm sure there are other uses too... Just going off what came to mind first.
Total: 4, on page: 4
Im sorry, but I do not fully comprehend it's usefullness. Can you provide me with an example? thx..