Jump to content

Seach form with SEF urls


Zeka
 Share

Recommended Posts

Hi PWers.

I need to implement filter of products catalog for one of my project.

The most difficult part of that is SEF (Search engine friendly) and maybe you can suggest or advice some ways how to do that?

So i have this structure: 

Animal categories:

  • cattle
  • pigs
  • dogs
  • cats

Product type categories

  • cat1
  • cat2
  • cat3

Product can be assigned to all categories or just to a part of them. There is no problems with that at all.

Besides of that structure i need to build search form with two section of checkboxes ( animals categories / types categoreis ); 

For example if i choose cattle, pigs, cat1, cat2 in this form I have to be redirected to url like that:

site.com/catalog/cattle/pigs/cat1/cat2

As you can see there is every url segment represents one checkbox selection. 

Depending on selection of checkboxes i need to change search result, title, some body text of a page and so on. 

So i see one way to do that: 

URL segments and session redirects to url depending of get query.

But i don`t know how to hold user selection throught redirect. And what pitfalls can be in this implementation? 

And maybe you have any other suggetions? 

 

Thanks for any info

Link to comment
Share on other sites

Ok first one - url segments are nice - if you set them on a url and load that content you've access to all segments that are provided....

or you go with get parameters:

http://demo.processwire.com/search/?keywords=&city=ann-arbor&height=250-500&floors=&year=&submit=Search

But maybe i 'm not really understand the question - more details would be great...

regards mr-fan

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...