Adding global variables to kotti templates

14 views
Skip to first unread message

Oshane Bailey

unread,
Feb 27, 2016, 11:57:01 AM2/27/16
to Kotti
Anyone knows how I can add default variables and functions that will be used in all templates? For instance, context is defined in all table.

FFFFFFFab

unread,
Feb 29, 2016, 2:56:19 AM2/29/16
to Kotti
Le samedi 27 février 2016 17:57:01 UTC+1, Oshane Bailey a écrit :
Anyone knows how I can add default variables and functions that will be used in all templates? For instance, context is defined in all table.

You could use kotti.views.TemplateAPI class.

Andreas Kaiser

unread,
Feb 29, 2016, 3:10:47 AM2/29/16
to Kotti
Reply all
Reply to author
Forward
0 new messages