2 Posts
compulaw2
8 years ago
1
Topic

Hello guys,

to whom it may concern:

I have bought this plugin (http://www.seblod.com/store/extensions/19157) and with respect with this spec (http://www.seblod.com/resources/tutorials/using-the-search-query-field-plugin) I tried to make a "list view", which works perfectly fine. Now to make the fields in order to search through "list view" I found this script [MATCH]database_field_name||$uri->getValue('search_field_name')[/MATCH]. I want to make two fields "Date" to search future>= and past<=. My question is regarding to the script.. How the script/code should look like? An example would be much appreciated. Thank you in advance.

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
0
Level 1

Hi,

[MATCH]database_field_name||$uri->getValue('search_field_name')[/MATCH] should do the trick, just use two date fields and set appropriate matching on them, then you can use both in query - of course aou will also need to construct the right query with it, but this is something you unfortunately need to be familiar with to be able to use use this field. You can see how you resulting query looks if you turn on debugging in the search type.

Get a VIP membership