[[tvExplorer? &dittoName=`Ditto`&formTPL=`zoektest`&dittoSnippetParameters=`tpl:zoektest|summarize:30|debug:0|paginate:1|depth:5|parents:0`]] [+tve.searchForm+] <h3>nb documents: [+total+] </h3> <div id="ditto_list" > [+tve.dittoList+] </div> <p class="ditto_pagination">Page <strong> [+currentPage+] </strong> of <strong> [+totalPages+] </strong></p> <p class="ditto_pagination"> <span id="ditto_pages" > [+previous+] [+pages+] [+next+] </span></p>
<form action="[~[*id*]~]" method="get"> <fieldset> [+tve.keywordsSearch:includeTVs->all:label->trefwoord+] </fieldset> <fieldset> [+tve.Name:filter->9+] </fieldset> <fieldset> [+tve.categorie:filter->9:blankLabel->-+] </fieldset> <fieldset> [+tve.Color:filter->9+] </fieldset> <fieldset class="sendForm" > <input type="submit" name="search" value="search" /> </fieldset> </form>
Hi,
You must keep the [+tve.dateElt+]
This is a special tag as parentElt.
[+tve. dateElt:name->minFloorSize:source->FloorSize:label->Size between:type->text:filter->3:size->10:maxlength->10+]
:-)
[+tve.dateElt:name->minFloorSize:source->FloorSize:label->Size between:type->text:filter->3:size->10:maxlength->10+] [+tve.dateElt:name->maxFloorSize:label->and :source->FloorSize:type->text:filter->4:size->10:maxlength->10+]
<form action="[~[*id*]~]" method="get"> <input type="hidden" name="id" value="[*id*]" /> <fieldset> [+tve.keywordsSearch:includeTVs->all:label->trefwoord+] </fieldset> <fieldset> [+tve.templatevar1:filter->9:blankLabel->-- all --+] </fieldset> <fieldset> [+tve.templatevar2:filter->9:blankLabel->-- all --+] </fieldset> <fieldset class="sendForm" > <input type="submit" name="search" value="search" /> </fieldset> </form>
<? // Use the following syntax $param = 'value'; ?><p>No documents found.</p>
Quote from: heliotrope at Nov 14, 2007, 07:55 AM
Hi,
You must keep the [+tve.dateElt+]
This is a special tag as parentElt.
[+tve. dateElt:name->minFloorSize:source->FloorSize:label->Size between:type->text:filter->3:size->10:maxlength->10+]
:-)
I now have
[+tve.dateElt:name->minFloorSize:source->FloorSize:label->Size between:type->text:filter->3:size->10:maxlength->10+] [+tve.dateElt:name->maxFloorSize:label->and :source->FloorSize:type->text:filter->4:size->10:maxlength->10+]
And it displays fine, however if I enter any values in those boxes, the search doesn’t find anything.
Is there a "special" thing like tve.dateElt that doesn’t deal with dates? It doesn’t seem to apply to this situation - perhaps I should explain better?
I have a list of house plans that people can browse. These house plans have various details like no of bedrooms, storeys and floor size in m2. Most of my filters are working great (thanks!), but I want to let the user enter the minimum and maximum floor sizes they want.
probably again a simple solution, but I’m afraid I got stucked again.
<form action="[~[*id*]~]" method="get"> <input type="hidden" name="id" value="[*id*]" /> <fieldset> [+tve.keywordsSearch:includeTVs->all:label->trefwoord+] </fieldset> <fieldset> [+tve.templatevar1:filter->9:blankLabel->-- all --+] </fieldset> <fieldset> [+tve.templatevar2:filter->9:blankLabel->-- all --+] </fieldset> <fieldset class="sendForm" > <input type="submit" name="search" value="search" /> </fieldset> </form>
If all selectboxes are left blank, I get all the resultpages. If I select either tv1 or tv2 no documents are found.
if I only fill in the keywordsearch field I get the proper results.......
heliotrope show your magix
btw, I see this in my HTML source although I have 4 records found ...
<? // Use the following syntax $param = 'value'; ?><p>No documents found.</p>
@moebius
rereading your post I guess you need the #RANGE method
In your case, as far as I understand, each property has a dimension (sorry if it’s not the good word) stored in a unique tv
So
[+tve.tvFloorSize:#RANGE{tvtype->text:filter->3:label->min Size||tvtype->text:label->max size:filter->4}+]
Should do the trick
:-)