Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-02-20 18:38:14

karl.dvx
Member
Registered: 2007-11-20
Posts: 33
Website

Navigation filter

Hi all, long time since I haven’t created anything in TXP, so lets change that. I want to build a basic job board using TXP. Nothing fancy, no member area, companies can post jobs using Wufoo forms and I’ll copy paste the entries for the time being and see how thing goes.. The most ‘fancy’ feature I want to implement is a listing filter, for which I can’t yet find a good solution on how to make this. The filter should be on location and job category.

Filter navigation will look something like this:

Job Category:
All
Customer Service
Finance
Marketing
IT

Location:
All
Boston
California
Chicago
New York
San Francisco

The homepage will show all jobs, so job category and location ‘All’ will be active. When a user clicks Job Category ‘Customer service’, he will get send to /customer-service/all/. Lets say he also filters his location to ‘Boston’, which should send him to /customer-service/boston/ where only customer service jobs in Boston will be displayed. The job entries will use the company name as a section, for location and job category I will use categories. The problem is I would now need to make an article for every possible combination, right? This would mean 5 job categories times 7 locations, and could even become more in the future..

The other issue is for example when someone is on the ‘Customer Service jobs in Boston’ page and changes the location to Chicago, the customer service filter should remain active and send him to /customer-service/chicago. I guess I need a lot of if/else statements in there then..

Any ideas on what ways I can implement this kind of filter navigation where every possible filter has its own URL?

Last edited by karl.dvx (2013-02-20 18:41:42)

Offline

#2 2013-02-20 19:13:35

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Navigation filter

There’s a How To about pretty much the same thing. Have a look at what you can adapt from there.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2013-02-20 19:48:29

karl.dvx
Member
Registered: 2007-11-20
Posts: 33
Website

Re: Navigation filter

Thanks Uli, will have a look at it.

Offline

Board footer

Powered by FluxBB