jonge-democraten / website

JD website
https://jongedemocraten.nl
MIT License
6 stars 2 forks source link

Search engine on website #43

Closed Pi2048 closed 9 years ago

Pi2048 commented 9 years ago

The documentation is at http://mezzanine.jupo.org/docs/search-engine.html.

bartromgens commented 9 years ago

I added a search field and button, and a search results page. In jd.nl style, and using the Mezzanine search engine.

jdsearch

The models to be searched are defined in settings.py, SEARCH_MODEL_CHOICES = ('pages.Page', 'blog.BlogPost', 'events.Event').

So currently all Pages (and derived models), BlogPosts and Events can be searched.

See commit 2c04a7fd726cc63470d602cef42589ff980cdfc5.

Pi2048 commented 9 years ago

The mobile template does not include a search field (= same as original website behaviour).

When viewing a search results page on a mobile agent, the regular template is used (because there is no mobile template for this type of page).

I find this acceptable because it is the same as on the original website. @bartromgens, are you aware of this and do you feel the same?

bartromgens commented 9 years ago

I was aware of this and had the same thought.

There simply is no search functionality on the mobile website, so also no need for a search_results mobile template.