Thank you, Bob
The background is the following: I have 3 parent resources, let's call them TVShowNames (News (id 477), Info (id 558), Sport (id 599). Each parent contains a lot of resources, let's call them TVShows. And each show has a date TV, let's call this OnAirDate.
What I like to achive is kind of a simple filtering option for displaying the TVShows based on TVShowName and/or OnAirDate.
I just modified what I have so far and translated it in English. I also removed most HTML Tags for better readability.
/* FormIt */
[[!FormIt?
&submitVar=`searchShow_submit`
&preHooks=``
/* hook reformatFormItDate reformats the Date from dd.mm.yyyy into yyyy-mm-dd */
&hooks=`reformatFormItDate,redirect`
&store=`1`
&redirectTo=`540`
]]
/* Form */
<form method="post" action="[[~[[*id]]]]" id="searchShow_form">
<select name="searchShow_list">
<option value="477,558,599" [[!+fi.searchShow_list:FormItIsSelected=`477,558,599`]] >All Shows</option>
<option value="477" [[!+fi.searchShow_list:FormItIsSelected=`477`]] >News</option>
<option value="558" [[!+fi.searchShow_list:FormItIsSelected=`558`]] >Info</option>
<option value="599"[[!+fi.searchShow_list:FormItIsSelected=`599`]] >Sport</option>
</select>
<!-- Datum von -->
<input type="text" value="[[+fi.searchShow_Date]]" name="searchShow_Date" id="searchShow_Date" class="date-pick" />
<input type="submit" name="searchShow_submit" class="submit-button" value="Search" />
</form>
/* FormItRetriever for storing the submitted values */
[[!FormItRetriever]]
/* getPage/getResources part */
[[!getPage@TBPaging?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`[[!If? &subject=`[[+fi.searchShow_list]]` &operator=`isempty` &then=`477,558,599` &else=`[[+fi.searchShow_list]]` ]]`
&depth=`4`
&limit=`10`
&pageVarKey=`page`
&pageLimit=`3`
&includeContent=`0`
&includeTVs=`1`
&processTVs=`1`
&tvPrefix=``
&tvFilters=`OnAirDate==[[+fi.searchShow_Date]] 18:00:00`
&sortby=`pagetitle`
&sortdir=`DESC`
&tpl=`SendOverviewWebTV`
]]
<div class="pagination">
<span class="pagination">Page [[+page]] from [[+pageCount]]</span>
[[!+page.nav]]
</div>
Basically, this is working BUT when loading the page for the first time, no results are shown and it takes quite a long time to load.
Any help is very much appreciated.
BTW, I'm using Modx 2.1.3, getResrouces 1.5.0 and FormIt 1.5.5