Goodmorning everyone.
I have a problem regarding a website build with CouchCMS.
I have a quicksearch in homepage pointing to the "immobili.html" page, where there are all houses listed. The same quicksearch is also in "immobili.html" page.
In the homepage, when I choose a filter to make the search (es. "Seriate" under "Comune"), the research links to the page, which however is not filtered. In this case, even refreshing the page, the quicksearch doesn't work.
Instead, choosing a filter in "immobili.html" page and searching there, the research works well... The strange thing is that in both cases the generated links are the same (https://www.cortesimmobiliare.it/immobi ... uicksearch).
The question is: why does not the research in homepage work?
I post here the two codes of the quicksearch:
Homepage
Immobili.html
You can see the functioning by visiting the url: https://www.cortesimmobiliare.it/ and trying to make a research.
Any help would be appreciated.
Thank you!
I have a problem regarding a website build with CouchCMS.
I have a quicksearch in homepage pointing to the "immobili.html" page, where there are all houses listed. The same quicksearch is also in "immobili.html" page.
In the homepage, when I choose a filter to make the search (es. "Seriate" under "Comune"), the research links to the page, which however is not filtered. In this case, even refreshing the page, the quicksearch doesn't work.
Instead, choosing a filter in "immobili.html" page and searching there, the research works well... The strange thing is that in both cases the generated links are the same (https://www.cortesimmobiliare.it/immobi ... uicksearch).
The question is: why does not the research in homepage work?
I post here the two codes of the quicksearch:
Homepage
- Code: Select all
<cms:form autocomplete="off" name="quicksearch" id="demo-form" class="form-horizontal mb-lg" action='/immobili'>
<cms:if k_success>
<cms:if frm_rif && frm_rif!='-' >
<cms:set form_rif=frm_rif scope='global'/>
</cms:if>
<cms:if frm_loc && frm_loc!='-' >
<cms:set form_loc=frm_loc scope='global'/>
</cms:if>
<cms:if frm_tipologia && frm_tipologia!='-'>
<cms:set form_tipologia=frm_tipologia scope='global'/>
</cms:if>
<cms:if frm_prezzo && frm_prezzo!='-' >
<cms:set form_prezzo=frm_prezzo scope='global'/>
</cms:if>
</cms:if>
<div class="row align-items-center">
<div class="col-md col-sm-6 m-b15">
<label for="" >Codice Riferimento</label>
<cms:input name="rif" class="form-control" placeholder="Inserisci il codice" required type="text"/>
</div>
<div class="col-md col-sm-6 m-b15">
<label for="" >Comune</label>
<cms:set com_unici="<cms:php>
$input = array(<cms:pages masterpage='immobili.php' folder='pronta-consegna'>'<cms:show comune/>', </cms:pages>);
$result = array_unique($input);
foreach($result as $list){
echo $list.' | ';
};
</cms:php>"/>
<cms:input name="loc" class="form-control" placeholder="Inserisci località" required type="dropdown" opt_values="Tutti i comuni=-|<cms:show com_unici/>"/>
</div>
<div class="col-md col-sm-6 m-b15">
<label for="" >Tipologia</label>
<cms:set tip_uniche="<cms:php>
$input = array(<cms:pages masterpage='immobili.php'>'<cms:show tipologia/>', </cms:pages>);
$result = array_unique($input);
foreach($result as $list){
echo $list.' | ';
};
</cms:php>"/>
<cms:input name="tipologia" class="form-control" placeholder="Inserisci località" required type="dropdown" opt_values="Tutte le tipologie=-|<cms:show tip_uniche/>"/>
</div>
<div class="col-md col-sm-6 m-b15">
<label for="">Prezzo</label> <span class="small amount"></span>
<div class="price-range m-t15"></div>
</div>
<div class="col-md col-sm-6">
<cms:input type="submit" value="Cerca" id="search-btn" class="site-button letter-spacing-2 button-md btn-block" name="submit"/>
</div>
</div>
</cms:form>
Immobili.html
- Code: Select all
<cms:form autocomplete="off" name="quicksearch" method="post" id="demo-form" class="form-horizontal mb-lg">
<cms:if k_success>
<cms:if frm_rif && frm_rif!='-' >
<cms:set form_rif=frm_rif scope='global'/>
</cms:if>
<cms:if frm_loc && frm_loc!='-' >
<cms:set form_loc=frm_loc scope='global'/>
</cms:if>
<cms:if frm_tipologia && frm_tipologia!='-'>
<cms:set form_tipologia=frm_tipologia scope='global'/>
</cms:if>
<cms:if frm_prezzo_ricerca >
<cms:set form_prezzo="<cms:php>$prezzo_noeuro = str_replace('€', '', '<cms:show frm_prezzo_ricerca/>'); echo str_replace('.', '', $prezzo_noeuro );</cms:php>" scope='global'/>
<cms:set prezzo_da="<cms:each form_prezzo sep=' - '><cms:if k_count='0'><cms:show item/></cms:if></cms:each>" scope='global'/>
<cms:set prezzo_a="<cms:each form_prezzo sep=' - '><cms:if k_count='1'><cms:show item/></cms:if></cms:each>" scope='global'/>
</cms:if>
</cms:if>
<div class="row align-items-center">
<div class="col-md col-sm-6 m-b15">
<label for="" >Codice Riferimento</label>
<cms:input name="rif" class="form-control" placeholder="Inserisci il codice" required type="text"/>
</div>
<div class="col-md col-sm-6 m-b15">
<label for="" >Comune</label>
<cms:set com_unici="<cms:php>
$input = array(<cms:pages masterpage='immobili.php' folder='pronta-consegna'>'<cms:show comune/>', </cms:pages>);
$result = array_unique($input);
foreach($result as $list){
echo $list.' | ';
};
</cms:php>"/>
<cms:input name="loc" class="form-control" placeholder="Inserisci località" required type="dropdown" opt_values="Tutti i comuni=-|<cms:show com_unici/>"/>
</div>
<div class="col-md col-sm-6 m-b15">
<label for="" >Tipologia</label>
<cms:set tip_uniche="<cms:php>
$input = array(<cms:pages masterpage='immobili.php'>'<cms:show tipologia/>', </cms:pages>);
$result = array_unique($input);
foreach($result as $list){
echo $list.' | ';
};
</cms:php>"/>
<cms:input name="tipologia" class="form-control" placeholder="Inserisci località" required type="dropdown" opt_values="Tutte le tipologie=-|<cms:show tip_uniche/>"/>
</div>
<div class="col-md col-sm-6 m-b15">
<label for="">Prezzo</label> <span id="prezzo-ricerca" class="small amount"></span>
<cms:input class='invisibile' name='prezzo_ricerca' type='text'/>
<div class="price-range m-t15"></div>
</div>
<div class="col-md col-sm-6">
<cms:input onclick="prelevaPrezzo()" type="submit" value="Cerca" id="search-btn" class="site-button letter-spacing-2 button-md btn-block" name="submit"/>
</div>
</div>
</cms:form>
You can see the functioning by visiting the url: https://www.cortesimmobiliare.it/ and trying to make a research.
Any help would be appreciated.
Thank you!