Predefined smarty variable reference (mainly $count)

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
completely lost

Predefined smarty variable reference (mainly $count)

Post by completely lost »

Ive been searching the documentation for a few hours now just trying to get a grasp on how to create my own menu... I understand the concept of the smarty scripting, however in all of the menu page examples almost everything starts with "if $count > 0"  Now I have looked and looked and looked as to find out what exactly is the value in $count, ive looked through the smarty homepage, and the cmsms api documentation only to find out that a reference to such a widely used variable is not at all easy to find anywhere.

I mean the menu examples/tutorials jsut throw a bunch of code on a page and doesnt explain in detail what it does, just vague titles that tell what the whole example does....

So could someone please end my frustration and point me at a useful page/reference that i can use to find out what predefined variables there are, or a mroe in-depth menu tutorial?
Last edited by completely lost on Fri Jul 10, 2009 10:15 pm, edited 1 time in total.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Predefined smarty variable reference (mainly $count)

Post by Jeff »

Try using {get_template_vars} or it you want a print-out of an object (like a menu node) {$node|print_r}
Post Reply

Return to “Developers Discussion”