Looking for variable lists

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Looking for variable lists

Post by randulo » Sun Jul 24, 2005 9:07 pm

Hi,

I've made a lot of progress and have my embded install working great. I can understand what is going in the provided templates, but in order to advance further, I'm looking for a list of all the variables (or properties?) used in s9y.

In the section "technical documentation" I find sections of how to do some things but no variables list. By the way, I found the embed instructions so opaque that I decided to rewrite the index.php to include my content. Worked great.

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Looking for variable lists

Post by garvinhicking » Sun Jul 24, 2005 9:49 pm

Well, actually there is no list of variables available and we would love if somebody could contribute it to our Wiki.

Finding them is quite easy. Either go through the variables in the default/*.tpl files, or search the code for all "->assign(" calls to the smarty object. Most of them are stacked in include/functions_smarty.inc.php - others are assigned in the include/functions_entries.inc.php file and functions.

Most of the variable names have self-explanatory names, so this is just some "grunt work" ;-)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply