Salut Gaëtan,
En fait, il y a bien un moyen, mais il faut modifier en dur le code source de Mantis.
-->
\www\mantis\core\filter_api.php :
Remplace les lignes 2365 à 2409 comprise par celles-ci :
<!--<tr <?php //PRINT "class=\"" . $t_trclass . "\""; ?>>
<td class="small-caption" valign="top">
<a href="<?php //echo $t_filters_url . 'platform'; ?>" id="platform_filter"><?php //echo lang_get( 'platform' ) ?>:</a>
</td>
<td class="small-caption" valign="top">
<a href="<?php //PRINT $t_filters_url . 'os'; ?>" id="os_filter"><?php //echo lang_get( 'os' ) ?>:</a>
</td>
<td class="small-caption" valign="top">
<a href="<?php //PRINT $t_filters_url . 'os_build'; ?>" id="os_build_filter"><?php //echo lang_get( 'os_version' ) ?>:</a>
</td>
<td class="small-caption" valign="top" colspan="5">
<a href="<?php //PRINT $t_filters_url . 'tag_string'; ?>" id="tag_string_filter"><?php //echo lang_get( 'tags' ) ?>:</a>
</td>
<?php /*if ( $t_filter_cols > 8 ) {
echo '<td class="small-caption" valign="top" colspan="' . ( $t_filter_cols - 8 ) . '"> </td>';
} */?>
</tr>-->
<!--<tr class="row-1">
<td class="small-caption" valign="top" id="platform_filter_target">
<?php
//print_multivalue_field( FILTER_PROPERTY_PLATFORM, $t_filter[FILTER_PROPERTY_PLATFORM] );
?>
</td>
<td class="small-caption" valign="top" id="os_filter_target">
<?php
//print_multivalue_field( FILTER_PROPERTY_OS, $t_filter[FILTER_PROPERTY_OS] );
?>
</td>
<td class="small-caption" valign="top" id="os_build_filter_target">
<?php
//print_multivalue_field( FILTER_PROPERTY_OS_BUILD, $t_filter[FILTER_PROPERTY_OS_BUILD] );
?>
</td>
<td class="small-caption" valign="top" id="tag_string_filter_target" colspan="5">
<?php
/*$t_tag_string = $t_filter['tag_string'];
if ( $t_filter['tag_select'] != 0 ) {
$t_tag_string .= ( is_blank( $t_tag_string ) ? '' : config_get( 'tag_separator' ) );
$t_tag_string .= tag_get_field( $t_filter['tag_select'], 'name' );
}
PRINT $t_tag_string */
?>
<input type="hidden" name="tag_string" value="<?php //echo $t_tag_string ?>"/>
</td>
</tr>-->
Ainsi, la ligne contenant les filtres "Plate-forme", "OS", "Version" et "Balises" sont masqués.
Si jamais tu ne veux pas masquer tous les éléments présents sur une ligne, il te faudra alors jouer avec l&
#039;attribut "colspan" présent dans les balises <td>, exemple :
<td colspan="'nombre_de_colonnes_à_joindre'">blablabla</td>
Attention : Il va de soi qu&
#039;en cas de mise à jour de Mantis ces modifications seront perdues ... il faudra donc refaire cette manip&
#039; en trouvant où se trouve ces lignes dans la nouvelle version de ce fichier.
Gôm
Mantis : 1.0.6 - 1.1.2 (avec Plugins)
Apache : 2.0.63
PHP : 4.4.9
MySQL : 5.0.51b
OS : Windows 2003 Server R2 SP2
Environnement : WAMP Server 2.0c
Edited 1 time(s). Last edit at 08/30/2008 09:14AM by gom.