Mantis

Personnalisation du filtre

Posted by geget 
Personnalisation du filtre
August 29, 2008 03:48PM
Bonjour Vincent,

Y a t'il possibilité de personnaliser l'affichage du filtre ?

Il y a des zones que je n'utilise pas. Elle ne servent donc à rien et prennent de la place sur la page. (version, OS, Plateforme, et d'autres encore ...)

Merci d'avance

Gaëtan



Edited 1 time(s). Last edit at 08/29/2008 03:49PM by geget.
Re: Personnalisation du filtre
August 29, 2008 06:23PM
Non il n'y a pas.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
gom
Re: Personnalisation du filtre
August 30, 2008 09:12AM
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 . &#039;platform&#039;; ?>" id="platform_filter"><?php //echo lang_get( &#039;platform&#039; ) ?>:</a>
			</td>
			<td class="small-caption" valign="top">
				<a href="<?php //PRINT $t_filters_url . &#039;os&#039;; ?>" id="os_filter"><?php //echo lang_get( &#039;os&#039; ) ?>:</a>
			</td>
			<td class="small-caption" valign="top">
				<a href="<?php //PRINT $t_filters_url . &#039;os_build&#039;; ?>" id="os_build_filter"><?php //echo lang_get( &#039;os_version&#039; ) ?>:</a>
			</td>
			<td class="small-caption" valign="top" colspan="5">
				<a href="<?php //PRINT $t_filters_url . &#039;tag_string&#039;; ?>" id="tag_string_filter"><?php //echo lang_get( &#039;tags&#039; ) ?>:</a>
			</td>
			<?php /*if ( $t_filter_cols > 8 ) {
				echo &#039;<td class="small-caption" valign="top" colspan="&#039; . ( $t_filter_cols - 8 ) . &#039;">&nbsp;</td>&#039;;
			} */?>
		</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[&#039;tag_string&#039;];
					if ( $t_filter[&#039;tag_select&#039;] != 0 ) {
						$t_tag_string .= ( is_blank( $t_tag_string ) ? &#039;&#039; : config_get( &#039;tag_separator&#039; ) );
						$t_tag_string .= tag_get_field( $t_filter[&#039;tag_select&#039;], &#039;name&#039; );
					}
					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="&#039;nombre_de_colonnes_à_joindre&#039;">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.
Re: Personnalisation du filtre
September 01, 2008 06:42AM
OK, merci bien Gom
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 3
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr