Thanks for your question and for the link to your site. When I clicked on the link you posted I get a login form, so I couldn’t see the actual page you need help with.
Searching for and displaying PDF documents is a common application, and you can start with a small variation on the “Search Form and Gallery” example in the Settings/Media library Assistant Documentation tab. The example displays images, but you can use the post_mime_type parameter to adapt it to PDF documents. For your application, start with something like this:
<form id="mla-search-form" action="." method="post">
<input id="mla-search-box" name="search-string" type="text" value="" /> <input id="submit" name="submit" type="submit" value="Search" />
</form>
[mla_gallery post_mime_type="application/pdf" s="{+template:({+request:search-string+}|a-bad-term)+}" posts_per_page=12 mla_output="paginate_links,prev_next" mla_link_href="{+page_url+}?search-string={+request:search-string+}"]
[mla_gallery post_mime_type="application/pdf" s="{+template:({+request:search-string+}|a-bad-term)+}" mla_nolink_text="Enter a search value above to display gallery." posts_per_page=12]
The only change I made from the example in the Documentation is to add post_mime_type="application/pdf" to the two shortcodes. That will select PDF documents in your Media Library.
There are many variations on this basic idea, such as searching for keywords in the items’ Title and Description fields versus searching for category and tag terms assigned to the items. Here are some earlier support topics you might find useful:
displaying PDF documents
A Search Form and Results
does this allow a user to search for pdfs from the frontend?
I hope that gets you started on a solution that works for your application. I am marking this topic resolved, but please post an update if you have any problems or further questions regarding the above suggestions or the earlier topics. Thanks for your interest in the plugin.
Thread Starter
deso
(@deso)
Hi David Lingre! Thanks for your answer. it help me and you can see the result now at same adresse. i hade locked the page reason you got a login form.
Thanks for your update with the good news. I greatly enjoyed finding the “Sample Document taken from the Internet BrewPoint” on your testing page.
You might find this recent topic interesting:
Link in file instead of icon
Good luck with the rest of your application.