Page 1 of 1

LISE help - search/filtering

Posted: Thu Jul 23, 2020 4:35 pm
by johnboyuk1
Hi all ... am having a real headache with LISE, I'm hoping someones been there before and knows the answer!

I'm trying to achieve a list of items that can be filtered in 2 ways - by 'place' and by 'qualification', I have a test set up to explain:

http://217.199.187.195/cpr-staging.uk/index.php

Problem number 1: I need 2 filter options, but can only get 1 to display.

The help file says:
Specify the fields whose values should be offered as filter options by listing the field's aliases comma separated
But I can only get one to show - here's my module code:

Code: Select all

{LISEPlacements action="search" filter="location, qualification"}
Problem 2 ... try this:

Set filter to location A and click button
In last that appears you should see 'place 1' and 'place 2'... click 'place 1' - you should see the detail page
Now click the 'return link'
And now click 'place 2'...

It doesnt work! You get the detail for place 1 instead?!

I am using the stock 'filter' search template, and 'search results' summary template

Anyone help?! Or maybe there's another module out there I could look at?

Re: LISE help - search/filtering

Posted: Thu Jul 23, 2020 4:48 pm
by Jo Morg
Regarding Problem 1:
johnboyuk1 wrote:{LISEPlacements action="search" filter="location, qualification"}
Probably the space in the filter parameter. Try without spaces.
Regarding Problem 2: we'll need more details than that. I have been using that feature of LISE extensively without issues. The result list always have the correct links to each item in my tests.

PS: In any case, the return link there may not work at all if/when you setup pretty urls. I'll try to reproduce that in a vanilla install when I have some time.

Re: LISE help - search/filtering

Posted: Thu Jul 23, 2020 4:52 pm
by johnboyuk1
Hi Jo

Thanks for replying - took the space out, no change I'm afraid. Re the other problem - did you see the test link I posted where you can view in action?

http://217.199.187.195/cpr-staging.uk/

Re: LISE help - search/filtering

Posted: Thu Jul 23, 2020 4:58 pm
by Jo Morg
Yes I did. But I'll try to reproduce it on a vanilla install. I don't think I ever saw that particular issue but I'll need to test.

Re: LISE help - search/filtering

Posted: Thu Jul 23, 2020 5:01 pm
by johnboyuk1
ok thanks - ultimately I will need pretty URLS - are you saying it wont work with that anyway?

From a usability point the user needs to be able to return / go back to their search results rather than having to start the search all over again

Guess I could look at a javascript history.back() method and see if that works instead

Any thoughts on the multiple filtering issue too?

Re: LISE help - search/filtering

Posted: Thu Jul 23, 2020 5:06 pm
by johnboyuk1
Have just added js backmethod to the test - that might get me round the problem ... just need to sort the multiple filters!?

Re: LISE help - search/filtering

Posted: Thu Jul 23, 2020 5:09 pm
by Jo Morg
johnboyuk1 wrote:are you saying it wont work with that anyway?

From a usability point the user needs to be able to return / go back to their search results rather than having to start the search all over again
Potentially not. Again I'd have to test. javascript history.back() is an option or at least a shortcut until I have time to confirm and debug the issue.

Re: LISE help - search/filtering

Posted: Thu Jul 23, 2020 5:12 pm
by johnboyuk1
Thanks Jo

I think I've realised why my multiple filters wont work too! I was mixing types - one field was a multi-select, the other a checkbox group - seems it doesn't like that... if I set both to checkbox groups it works!

Am going to flesh this out using the JS method and see if that will work for me

Thanks for talking this through with me - am sure I'll hit another snag somewhere so will keep this post open...