I added two (2) 'CustomSearch' to a single page in separate sections and separate div id's and different data, the search data and result keeps defaulting to the last CustomSearch on the page. below is the scenario:
{CUSTOMSEARCH}
{CUSTOMSEARCH( tpl="firstCustomSearch.tpl" id="first_search")} {filter field="tracker_id" content="2"} {output template="templates/first-template.tpl" pagination="y"} //output data 1 {CUSTOMSEARCH} //Some texts and logics seprating them here //In another section {CUSTOMSEARCH( tpl="secondCustomSearch.tpl" id="second_search")} {filter field="tracker_id" content="4"} {output template="templates/second-template.tpl" pagination="y"} //output data 2 {CUSTOMSEARCH}
//Output
Searches in first_search form field defaults to data on 'output data 2' and displays result also in it's custom_search_result div. With this, it skips the data and search on 'output data 1' entirely.
Perhaps, the fact that they share same js 'customsearch' variable picks the last one, not sure.
Also, the inclusion of 'destdiv' parameter with different id's (of course) resulting to respective output data section enters an infinite JQuery loading blocking the data from being populated on the page. While a rename of 'destdiv' parameter to say 'destinationdiv' (undeclared parameter name, yes) populates the display without the blocking but doesn't affect the behavior of Customsearch (of course).
I hope I've been clear enough with this succinct explanation.
Let me know if you would want an elaborate one.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |