opis(17).txt

(1 KB) Pobierz
Three Level Chained Select
Few people were interested in this, so I posted as soon as possible, please let me know if there is a bug. It has been working without an issue on my
localhost.
The tag is {addon_threelevelsearch_select}
Thanks to pbFlash for ajaxsearch addon and Diana Barascu from Adobe.

You have to create your own data, there are few xml files to show proof of concept. Please study the xml files, it is quite straight-forward what to do.
To change the captions, eg:
<td class="searchpage_field_caption">State</td>
to
<td class="searchpage_field_caption">ChangeThistoSomet hingElse</td>
on line 51, 58, 65 of addon.inc.php

Also you need to have a field named county on your backend for your 3rd level.

I forgot to include the packed versions of the include files. There is also minified versions if you prefer. Packed is much smaller but minified may perform better with a gzipped delivery from the server. They will save you bandwidth. One other issue is that I use a dateforxml function to ensure xml files are not cached in case you make changes, which is crucial in the development phase, but would be leeching bandwidth if your xml files are not going to change. I will work a solution for that.
Zgłoś jeśli naruszono regulamin