Page 1 of 1

Complete doc of Smarty variables?

Posted: Sat Jun 23, 2007 10:59 am
by PHPaws
I wonder if there's a complete documentation on the smarty variables available in S9Y?

If not, I'd like to know the contents of the $entry and $entrydata arrays. :)

Please don't kill me if I did oversee an existing documentation. ;)
The search function in the forums didn't really help.

PS. Why am I asking?: I want to embed a DIGG button into my posts. Since I'm modifying the "findmore" Plugin for that, $entry isn't available. $entrydata doesn't seem the hold the body of the post so I cannot use the "digg_bodytext" variable/function to pass a snip of the bodytext directly to DIGG. One option would be to modify the entries.tpl of the Style I use, so I could use $entry insead. But by editing the Plugin I add the functionality to all the themes I'll use in the future. :)

(Do I make any sense at all?) :P

Thanks in advance,
Paws ^_^

Re: Complete doc of Smarty variables?

Posted: Mon Jun 25, 2007 12:14 pm
by garvinhicking
Hi!
PHPaws wrote:I wonder if there's a complete documentation on the smarty variables available in S9Y?
Of course there is. Check the technical documentation on www.s9y.org :-D
If not, I'd like to know the contents of the $entry and $entrydata arrays. :)
What always works is

Code: Select all

<pre>{$entry|@print_r}</pre>
within the smarty file, or by using the smarty debug console (check out the smarty documentation).
The search function in the forums didn't really help.
There's always the wiki on s9y.org for this kind of documentation :)

Best regards,
Garvin