Page 1 of 1
is it possible to customize the main page?
Posted: Mon Jan 11, 2010 9:00 am
by mikromel
Hi there!
I'm using testlink for about a week now and i'm really satisfied with the product. All is working fine till now and all needed configuration is a piece of cake.
The only thing I didn't find (not even in the documentation) is the configuration of the main page and i'm not sure if it is even possible (without making some big changes in html/php).
So my question is, if it is possible (or will be) to customize the main page? I mean something like to rearange the menu, display some messages etc.
thx for the reply...
mikromel
Posted: Wed Jan 13, 2010 2:10 pm
by difool
Adapt the layout is possible but heavy work imho.
But adapt main page to add informations is easily made.
Here is my method.
In
\lib\general\mainpage.php
Before:
Add:
Code: Select all
$smarty->assign('BBIuser',$currentUser);
$smarty->assign('BBIproject',$_SESSION['testprojectName']);
It allows to use some variables in the template which will be rendererd, here i transmit an user object and the current project name.
In
\gui\templates\mainpage.tpl
Before:
Add:
Code: Select all
<center>
<br>
<font size=3 color="#445577">
Bienvenue {$BBIuser->firstName} dans votre espace TestLink - Indus.<br>
Vous êtes actuellement sur le projet <b>{$BBIproject}</b><br>qui possède <b>{$countPlans}</b> plan(s) de test en cours.<br><br>
</font><font size=2 color="#334466">
<i>Pour changer de projet de travail utilisez le sélecteur de projet <b>Projet de test</b><br>
en haut à droite de votre écran.</i>
</center>
<br>
<u>Rappel:</u><br>
<br>
• Pour définir vos spécifications fonctionnelles, utilisez le choix <b>Gérez les dossiers d'exigences</b> du menu de gauche <b>Exigences fonctionnelles</b>.<br>
• Pour définir vos cas de test, utilisez le menu <b>Spécification</b> dans la barre de menu en haut.<br>
• Pour définir vos plans de test et sessions de tests, utilisez le choix <b>Gestion des plans de test</b> et le choix <b>Administration des campagnes</b> du menu de droite <b>Administration des plans de test</b>.<br>
• Pour exécuter une campagne de test, utilisez le menu <b>Exécution</b> dans la barre de menu en haut.<br>
• Pour consulter les résultats d'une campagne de test, utilisez le menu <b>Résultats</b> dans la barre de menu en haut.<br>
</font>
It allows to put a welcome notice with current user first name and current test project name and current test project active test plans count. I added a small quick help also.
BTW, use the current CSS and localize strings to do a clean work

Posted: Thu Jan 14, 2010 1:25 pm
by mikromel
thx for the reply.
i will try it out to see the outcome.