Forums / Cotonti / Extensions / Slots and Tags

Extension to use TPL tags and functions in menu slots

Macik
#36375 2012-12-02 14:44

Nop. It's initializes on «global» hook (in common.php). But all main resouces, like lang strings will work. (ex: {PHP.L.Main}) All standard functions will work too ({PHP|cot_url('page', 'c=news')}).

Main usage of menu slots is to easy maintain menu or common block of code for use in templates. But last trend for it is to use cot_* functions and makin «IF» blocks right in TPL files.
So user must choose to use web-editing with «plaintext» or to use file-editing with functions and tags.

Slot'n'Tags - is attempt to combine better of these ways.

ps: already added in downloads and being rewieved.

 

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F