Add Search & Pagination

The Search & Pagination extension adds searching and pagination functionality to Simple File List Pro. It is designed to make finding what you need and navigating through large file lists much easier.

Search

A search box will appear above your file list. The file search can be based on name and/or a date range, if the date column is displayed as shown here.

Name searches also search the item’s nice name, description and submitter info.

The use of wildcards is also supported. For example: .jp*g would find both jpg and jpeg files.

Try the Demo | Buy Now


Search Form Only

If you want to display the search form without the list, you can place this shortcode on any page, post or widget. Example:

[[eeSFLS permalink='https://website.com/file-list-page/']]

When the user clicks the Search button, the page defined by the permalink attribute is searched as it is loaded.


Pagination

Pagination controls will appear below the list, plus a total count of the pages. You define the size of each sub-page in the main plugin’s settings.


Settings

The extension adds five new options. To access these, go to the List Settings > Extension Settings tab.

Enable Search
Show or hide the search panel.

Search By
Show Search Inputs for Text, Date or Both.

Search by Date Type
Search by file date modified or date added to the list.

Enable Pagination
Organize the file list into smaller pages.

Choose Page Size
Choose how many files to show per page.

NOTE – Use shortcode attributes to customize these settings for secondary list locations.


Try the Demo | Buy Now

12 thoughts on “Add Search & Pagination”

  1. Hey, is there a way to choose a list and only show the most three recent files in a list ONLY. That way it will only show the most up-to-date files in this list and not require pagination as time goes on.
    I have already tried turning search of and pagination off with max 1 per page but it reverts to default.

    Reply
  2. Will you ever add file content search which is what is really needed – or do you have an alternative solution for searching contents of files in FLP

    Reply
    • Unlikely, as this would be extremely difficult to do on a web server, both technically and performance-wise. We’d need to be able to read the contents of the files, then store them in the database for searching. Reading text based files is easy, but PDFs are harder and other proprietary file types, like MS Office docs, may not be readable at all. But even if we could read all of the file content into the database, each file would need to be re-read for each file re-scan to ensure the content is accurate. This would take a long time and require a lot of memory. I doubt most shared hosting accounts could handle it.

      I’d recommend using the description field to store content keywords that users would be searching for. Descriptions are part of the search.

      Reply
    • No, but you could use folders to categorize files, then use the search to find those. However, Simple File List does not use WordPress post categories.

      Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.