Joomla.it Forum

Joomla! 3 => Joomla! 3 => : Max90.. 28 Jul 2014, 15:44:42

: Problema Search / Cerca
: Max90.. 28 Jul 2014, 15:44:42
Ciao,

potete controllare il mio sito? per esempio la pagina: http://www.tieffe.org/tf/index.php/le-ceramiche

Come potete notare non riesco a sistemare il problema del cerca (in alto a destra).
Appare due volte la parola "Cerca..." una all'interndo del form di ricerca e una sopra il form!!
Come sistemo?
: Re:Problema Search / Cerca
: blue_peter 28 Jul 2014, 18:59:59
ciao.


la prima cosa che mi viene in mente e': il doppio cerca non e' forse il titolo del modulo?


se si', prova a togliere la visualizzazione dello stesso.






Pietro

: Re:Problema Search / Cerca
: Max90.. 29 Jul 2014, 11:10:53
Il titolo è gia disattivato..
Questo è il codice della pagina incriminata:
:
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_search
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>

<div class="search<?php echo $moduleclass_sfx ?>">
    <form action="<?php echo JRoute::_('index.php');?>" method="post" class="form-inline">
        <?php
            $output 
'<label for="mod-search-searchword" class="element-invisible">' $label '</label> ';
            
$output .= '<input name="searchword" id="mod-search-searchword" maxlength="' $maxlength '"  class="inputbox search-query" type="text" size="' $width '" value="' $text '"  onblur="if (this.value==\'\') this.value=\'' $text '\';" onfocus="if (this.value==\'' $text '\') this.value=\'\';" />';

            if (
$button) :
                if (
$imagebutton) :
                    
$btn_output ' <input type="image" value="' $button_text '" class="button" src="' $img '" onclick="this.form.searchword.focus();"/>';
                else :
                    
$btn_output ' <button class="button btn btn-primary" onclick="this.form.searchword.focus();">' $button_text '</button>';
                endif;

                switch (
$button_pos) :
                    case 
'top' :
                        
$output $btn_output '<br />' $output;
                        break;

                    case 
'bottom' :
                        
$output .= '<br />' $btn_output;
                        break;

                    case 
'right' :
                        
$output .= $btn_output;
                        break;

                    case 
'left' :
                    default :
                        
$output $btn_output $output;
                        break;
                endswitch;

            endif;

            echo 
$output;
        
?>

        <input type="hidden" name="task" value="search" />
        <input type="hidden" name="option" value="com_search" />
        <input type="hidden" name="Itemid" value="<?php echo $mitemid?>" />
    </form>
</div>
: Re:Problema Search / Cerca
: blue_peter 29 Jul 2014, 21:06:52



ciao.


scusa il ritardo con cui ti rispondo.


se il codice che ti crea la parte di intestazione e' quello che hai postato, allora


da cosi':


:
<?php            $output '<label for="mod-search-searchword" class="element-invisible">' $label '</label> ';

            
$output .= '<input name="searchword" id="mod-search-searchword" maxlength="' $maxlength '"  class="inputbox search-query" type="text" size="' $width '" value="' $text '"  onblur="if (this.value==\'\') this.value=\'' $text '\';" onfocus="if (this.value==\'' $text '\') this.value=\'\';" />';



lo modificherei cosi':


[/size]
:


 <?php
            $output 
'<input name="searchword" id="mod-search-searchword" maxlength="' $maxlength '"  class="inputbox search-query" type="text" size="' $width '" value="' $text '"  onblur="if (this.value==\'\') this.value=\'' $text '\';" onfocus="if (this.value==\'' $text '\') this.value=\'\';" />';
: Re:Problema Search / Cerca
: Max90.. 30 Jul 2014, 10:23:54
Perfetto! grazie mille!  :D :D
: Re:Problema Search / Cerca
: blue_peter 30 Jul 2014, 16:46:45
di nulla!


:-)


se non ti scoccia, puoi per favore mettere il "risolto" nel titolo del topic?