Page 1 of 1

Dump all template variables

Posted: Thu Feb 10, 2011 4:56 pm
by zenmaster
There is a way to dump all template variables - I know because I've used it - but I can't remember how and, on this occasion, Google was not my friend.

Can anyone remind me of how to do this?

Thanks.

Re: Dump all template variables

Posted: Thu Feb 10, 2011 5:28 pm
by M@rtijn
{get_template_vars}
&
{$entry|print_r}

You are right Wishbone! I should really try to pay more attention to my posts :-[

Re: Dump all template variables

Posted: Thu Feb 10, 2011 6:26 pm
by Wishbone
M@rtijn wrote:{entry|print_r}
{$entry|print_r}

(if using News,CGBlog,CG*, etc)

Re: Dump all template variables

Posted: Thu Feb 10, 2011 11:47 pm
by zenmaster
Thank you.

I will stick them both in a content block so I will never forget again ;D .