Dump all template variables

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
zenmaster
New Member
New Member
Posts: 7
Joined: Wed Jan 26, 2011 12:46 pm

Dump all template variables

Post 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.
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Dump all template variables

Post by M@rtijn »

{get_template_vars}
&
{$entry|print_r}

You are right Wishbone! I should really try to pay more attention to my posts :-[
Make your community a better place!
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Dump all template variables

Post by Wishbone »

M@rtijn wrote:{entry|print_r}
{$entry|print_r}

(if using News,CGBlog,CG*, etc)
zenmaster
New Member
New Member
Posts: 7
Joined: Wed Jan 26, 2011 12:46 pm

Re: Dump all template variables

Post by zenmaster »

Thank you.

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

Return to “CMSMS Core”