Closed Pi2048 closed 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.
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.
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?
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.
The documentation is at http://mezzanine.jupo.org/docs/search-engine.html.