https://github.com/trustmaster/cot-pagetextbyid
Cotonti plugin which fetches page text by page ID with a TPL tag
https://github.com/trustmaster/cot-pagetextbyid
Last synced: about 1 year ago
JSON representation
Cotonti plugin which fetches page text by page ID with a TPL tag
- Host: GitHub
- URL: https://github.com/trustmaster/cot-pagetextbyid
- Owner: trustmaster
- Created: 2012-01-14T18:07:06.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-02-09T07:38:10.000Z (over 12 years ago)
- Last Synced: 2025-01-29T16:44:11.569Z (over 1 year ago)
- Language: PHP
- Homepage: http://www.cotonti.com/extensions/navigation-structure/pagetextbyid
- Size: 161 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Page text by ID
===================
Extension for Cotonti CMF. Gets page content by its reference
Description
-----------
Use this plugin to fetch page text by its id or alias using global tags
like {PHP|pagetextbyid(123)} where 123 is an ID of a page or
{PHP|pagetextbyid(\'alias\')} where «alias» is an ALIAS of a page/
Requirements
------------
Cotonti Siena branch
Install
-------
* Unpack, copy files to root folder of your site.
* Install via Admin → Extensions menu (`Administration panel → Extensions`)
Usage
-----
Use `pagetextbyid` function with page ID or Alias. Last page data stored in `last_pagetext` variable:
{PHP|pagetextbyid('alias')}
or
{PHP.last-pagetext.text}
Page {PHP.last-pagetext.pid} not found
###Sample use case
{PHP.last-pagetext.text}
Add category description
Licence
-------
Author
------
[Vladimir Sibirov](https://github.com/trustmaster/)
References
----------
* [Cotonti.com](http://Cotonti.com/) -- Home of Cotonti CMF
* [«pagetextbyid» on GitHub](https://github.com/trustmaster/cot-pagetextbyid) -- latest version of `pagetextbyid` on GitHub