Is there some function I can write in tags channel categories or entries that will work like print_r or var_dump in php?
Example:
{exp:channel:categories}
{print_r} or {var_dump}
{/exp:channel:categories}This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 14, 2012 9:24am
Subscribe [2]#1 / May 14, 2012 9:24am
Is there some function I can write in tags channel categories or entries that will work like print_r or var_dump in php?
Example:
{exp:channel:categories}
{print_r} or {var_dump}
{/exp:channel:categories}#2 / May 15, 2012 11:36am
What do you need to output exactly? All the content of the channel entries?
#3 / May 17, 2012 3:26pm
I did have some cases when I did have good ID of item in loop but other variables name where empty.
I was also testing some add-ons and I wanted to print all variables that was in loop.