Roundcube Community Forum

Themes & Styling => Theme Releases => Topic started by: andros69 on May 10, 2009, 09:58:53 PM

Title: list of available variables in RC
Post by: andros69 on May 10, 2009, 09:58:53 PM
Hi all,

I tried doing a search for this but didn't find anything like what I'm looking for.

Is there a list somewhere where you can find all the available variables in RC to use when skinning? I know theme documentation is something scheduled for future releases, but I was wondering if at least a list was already available now, even if with limited documentation.

Thanks!
Title: list of available variables in RC
Post by: rosali on May 11, 2009, 01:28:44 AM
Generally you can use all POST, GET, SESSION and CONFIG variables.

Set $rcmail_config['skin_include_php'] = TRUE; and create a include file in your "./skins/myskin/includes" folder:


echo "
";
print_r($_GET); print_r($_POST); print_r($_SESSION); print_r($CONFIG);
echo "
";
?>


Now if you include this file into a template, you can see what actually is available for this task/action.

In addition there are template objects. The functions for these objects are located in "./program/steps/--task--/func.inc". Look for "$OUTPUT->add_handlers".