Jump to content

Adding search-field to database listing template?


bpn

Recommended Posts

Posted

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?

Posted

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. 

Posted

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?

  • 3 weeks later...
  • 2 months later...
Posted

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.

Posted

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.

Posted
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. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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