bpn Posted July 4, 2017 Posted July 4, 2017 The current default db-listing display only has provision for sorting. How do add a search-field to a custom listing template so that I can list the database based on searching a field?
opentype Posted July 4, 2017 Posted July 4, 2017 That is already available through the main search field, which is normally on every page and defaults to the current content. But it will only search in the title and body field. Custom fields cannot be searched in any way.
bpn Posted July 9, 2017 Author Posted July 9, 2017 Sorry for the confusion, question is related to the IPS "Pages" application. Example: I have built a database of the current marked mobile phones with the most important data-fields for each phone included in the listing display. The title field is the manufacturer. How can I add a search function so that a visitor can choose to show the listing display showing Samsung phones only?
bpn Posted July 26, 2017 Author Posted July 26, 2017 Still looking for a solution to this. Any help appreciated.
Joel R Posted July 26, 2017 Posted July 26, 2017 Open up the Block Manager and add the block for filtering by database fields.
bpn Posted July 26, 2017 Author Posted July 26, 2017 Many thanks Joel, but I'm not aware of any such block. Is it some example block that was delivered with pages?
bpn Posted October 20, 2017 Author Posted October 20, 2017 Still looking for a solution. I would have thought listing a database based on search was a trivial operation. None of our 3.4 database application are usable after the 4.x upgrade due to this problem.
Ramsesx Posted October 21, 2017 Posted October 21, 2017 On 27.7.2017 at 12:59 AM, bpn said: Is it some example block that was delivered with pages? See it here:
bpn Posted October 21, 2017 Author Posted October 21, 2017 ok, maybe a misunderstanding here. I'm looking for a way to display a database listing based on search. As in the example I posted: Quote Example: I have built a database of the current marked mobile phones with the most important data-fields for each phone included in the listing display. The title field is the manufacturer. How can I add a search function so that a visitor can choose to show the listing display showing Samsung phones only? Seems like the most basic task, but I have not found how to do it.
Joel R Posted October 22, 2017 Posted October 22, 2017 As @Ramsesx pointed out, IPS comes with Database Filters. If that is not suitable for your task, you will need to develop a custom block for search.
bpn Posted October 22, 2017 Author Posted October 22, 2017 Thanks, but we do not have that block, only Editor and Custom.
opentype Posted October 22, 2017 Posted October 22, 2017 24 minutes ago, bpn said: Thanks, but we do not have that block, only Editor and Custom. So add it. Then you have it. You can define per field whether the field should be used for filtering. That’s the closest stock option for what you want. Just stating over and over again that you expected something else, won’t lead anywhere. If you want to show “Samsung phones only”, you need a manufacturer field and use the database filters widget to let users select a specific manufacturer.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.