|debug

The filter |debug can be used to fine-tune a template; it displays directly on the screen (for the webmaster only) the current value passed to it. It can also be found in the log file debug.log.

The possible argument that we pass to him allows us to better find our way if we have several debug points on the same page.

[(#ID_ARTICLE|debug{id_article})] [(#ID_RUBRIQUE|debug{id_rubrique})] displays:

'id_article' = 12
'id_rubrique' = 4

 

Warning: This filter must be removed after finishing development.

The |debug filter was introduced in SPIP 2.1 and SPIP 3 on 3 June 2014.

Author jack Published :

Translations : English, français, Nederlands