• Resolved morbidcuriosity

    (@morbidcuriosity)


    Hello,

    I’m trying to find workaround for another plugin which ends this year unfortunately. This plugin looks very good for my purpose but the main thing which I need about it is search field which doesn’t work at all. I used this [pdb_list search=”true”] on my page just to try if it works and there are no records shown.

    And another thing I’d like to ask is if I’d like this search field only search in specific fields, I should use this kind of code [pdb_list search=true search_fields=”city, state”] but my fields definitely don’t have these simple names. Is there any “slug” for my fields or I should use whole names of fields?

    Thank you in advance for your answer.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Hard to tell what’s going on there. I’d suggest you go over your configuration and make sure it’s set up correctly. If the list shortcode doesn’t show anything, that usually means there are no records to show…or there is some kind of error…but the first step is to make sure your fields are set up right, and that the records are present in the database. You can check that on the admin “list participant” page.

    If you want to control which fields are shown in the search, you’re doing it right, but you have to use the field names exactly as shown on the Manage Database Fields page.

    If you want simpler field names, you should start over and use brief titles to set up your fields. You can change the titles to their full length after the fields are set up.

    Thread Starter morbidcuriosity

    (@morbidcuriosity)

    So I made all participants fields again to prevent some special characters which our alphabet has. And of course I have created participant but search field still doesn’t show any list of items. And there’s no error in console shown. Any other idea?

    Plugin Author xnau webdesign

    (@xnau)

    What is the exact shortcode you are using to show the items?

    Thread Starter morbidcuriosity

    (@morbidcuriosity)

    Since I need search form there, I use [pdb_list search=”true”] but [pdb_list] doesn’t work as well.

    Plugin Author xnau webdesign

    (@xnau)

    OK, so if you have records in the database, and the [pdb_list search=”true”] shortcode doesn’t show any records, then probably your theme is hiding it.

    What exactly do you see?

    You may need to look at the HTML to see if the list is there in the HTML, but not visible for some reason.

    Thread Starter morbidcuriosity

    (@morbidcuriosity)

    I see only search field with search and clear buttons. In HTML there’s <table> tag but rows are empty.

    You can check it here: https://www.dobra-firma.cz/databaze/

    Plugin Author xnau webdesign

    (@xnau)

    Check the Manage List Columns page, make sure you have columns selected for display in the public list.

    Thread Starter morbidcuriosity

    (@morbidcuriosity)

    Thank you very much, now it works. I’m just stupid. ??

    Thread Starter morbidcuriosity

    (@morbidcuriosity)

    I just have one more question: Is it possible to set some record validity date so after this date records will not be shown anymore?

    Plugin Author xnau webdesign

    (@xnau)

    It’s best to ask a separate question in a new thread so that other users can find it.

    You can do this with a fixed date by adding a filter to the list, but if the validity date needs to be dynamic (for example 6 months after the record was created) you will need to write some custom code for that. The plugin doesn’t have this built in.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Searching doesn’t work’ is closed to new replies.