klox7 VIP
Total posts: 914
08 Июль 2014 13:13

If I'm for ex. on some child category (section->cat->cat) and I start search through filter module it gives me results on same page (url and title is from page I was before hitting search). Can I somehow redirect to section for results when searching through filter module.

Последние изменения: 22 Июль 2014


Sergey
Total posts: 13,748
09 Июль 2014 03:05

filter module have to redirect user to result page itself. If this module is not on the section page, if you set menu ID parameter in section, form will be submited to section URL.


klox7 VIP
Total posts: 914
09 Июль 2014 16:22

Sergey if you set menu ID parameter in section, form will be submited to section URL.

I set menu ID in section but it doesn't redirect to section URL. I'm using multiple types if that maybe ha something to do with it.


Sergey
Total posts: 13,748
09 Июль 2014 23:51

Give me link to page with filters module.


Sergey
Total posts: 13,748
17 Июль 2014 00:45

Search is not searchniong may be because of filter mode. You have to set it search through section. It is probably set as Records mode and records mode set to show items of only current category.


Sergey
Total posts: 13,748
17 Июль 2014 00:53

klox7 Can you please also see ordering problem. It redirects to home page.

Give me direct link where random order is.


Sergey
Total posts: 13,748
18 Июль 2014 01:25

Now filter module looks working to me.

The ordering problem should be fixed with next update.


klox7 VIP
Total posts: 914
18 Июль 2014 07:42

Filter module works fine, it's just that when on subcategory it doesn't redirect you to section. And it's confusing for users because they think they are seing results only from subcategory (page title is subcategory).

Could this be because of SEF component?


Sergey
Total posts: 13,748
21 Июль 2014 02:05

klox7 Could this be because of SEF component?

No. This is because user was on that page when started the search. Try to do this. Create copy of filter module layout. Set this layout in module parameters and edit it and delete

<input type="hidden" name="cat_id" value="<?php echo $cat_id;?>">

That should fix the problem.


klox7 VIP
Total posts: 914
21 Июль 2014 08:49

It did. Thanks.


Sergey
Total posts: 13,748
22 Июль 2014 11:32

Works?


klox7 VIP
Total posts: 914
22 Июль 2014 18:56

Yes :)

I also deleted <input type="hidden" name="user_id" value="<?php echo ($user_id ? $user_id.':admin' : 0);?>"> which added user_id=0 at the end of url.

Работает на Cobalt