Projectdepended Configuration
Posted: 03 Mar 2005, 12:58
Hi,
I am looking for a possibility to have the configuration (e.g. status, some strings) depended of the currently selected project, because I have different projects where there is need for different statuses etc.
What I do currently is to have some
if ( auth_is_user_authenticated() ) {
$t_project_id = helper_get_current_project();
if ( $t_project_id == 5 ) {
...
} else if ( $t_project_id == 7 ) {
...
}}}
switches in custom_strings_inc.php.
a) this does not seem to be the right place :-), but in config_inc.php auth_is_user_authenticated is not available.
b) there are problems obviously when displaying "all projects", but also if I am "in" one project (the project displayed in the upper right corner) and then display an issue of a different project. (This can occur e.g. by searching for the issue id).
Any suggestions?
Tobias
I am looking for a possibility to have the configuration (e.g. status, some strings) depended of the currently selected project, because I have different projects where there is need for different statuses etc.
What I do currently is to have some
if ( auth_is_user_authenticated() ) {
$t_project_id = helper_get_current_project();
if ( $t_project_id == 5 ) {
...
} else if ( $t_project_id == 7 ) {
...
}}}
switches in custom_strings_inc.php.
a) this does not seem to be the right place :-), but in config_inc.php auth_is_user_authenticated is not available.
b) there are problems obviously when displaying "all projects", but also if I am "in" one project (the project displayed in the upper right corner) and then display an issue of a different project. (This can occur e.g. by searching for the issue id).
Any suggestions?
Tobias