Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 23 days ago
JSON representation

Cotonti plugin which fetches page text by page ID with a TPL tag

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


Edit category description

{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