Using the File Search module your users can search and browse your Google Drive files & folders from your WordPress website.
Step-1: Create File Search Module
To create a Search Module, click on the Shortcode Builder menu from the admin dashboard menu. Create a new Shortcode > select the File Search module from the Types tab.
Rename the shortcode title from the top left side of the WordPress dashboard depending on your project type.
Then click Next.
Step-2: Configure the Sources Tab
Now you will be directly taken to the Sources (Files & Folders) tab. Here you need to select your files & folders from your linked Google Drive. Select your files & folders by pressing the plus sign.
You will discover your selected files, in the selected files list section of your screen. You can drag them up or down to change their orders.
Users only can search for files and folders that are selected.
You might notice new settings options named All Folders & Files and Use Private Folders. Let’s introduce you to them.
All Folders & Files: If All Folders & Files is enabled, visitors can navigate through all the files & folders, of your all linked Google Drive accounts.
Use Private Folders: On the other hand, if Use Private Folders is turned on, users can only navigate through the files & folders they are permitted to access.
Click Next.
Step-3: Configuring Excludes Tab
Now you have been taken to the Excludes Tab. Where you can customize every file and folder that you want to exclude.
Show Files: The Show Files option is given to show or hide your files. If it’s enabled files will show, otherwise files will be hidden for the users.
Show Folders: The Show Folders option is given to show or hide your folders. If it’s enabled the folders will be shown otherwise, the folders will be hidden from the users.
Exclude Extensions: With the help of Exclude Extensions, you can simply exclude any files by the extensions you want. For example you want to exclude (.jpg, .png, .ppt, .doc files). Simply type the file extension in the exclude box and you get to go. Keep in mind, when Exclude All Expect is enabled, only the typed extension files will not show.
Exclude Names: You can also exclude any file or folder name by using Exclude Names. Type any file or folder name and your items will be excluded right away. Use Exclude All Expect to only show up typed names.
Click Next.
Step-4: Configuring Advanced Tab
From the next Advanced Settings, You can customize your file searching module depending on what you are expecting.
Module Width: From this section, you can customize the module width. The value is given in the percentage (%). Play with this section and customize what you need. Just change the value and test! You can use any valid CSS unit (pixels, percentage), eg ‘360px’, ‘780px’, ‘80%’
Module Height: It’s similar to the width. Normally it’s given auto. You can customize depending on your need. You can use any valid CSS unit (pixels, percentage), eg ‘360px’, ‘780px’, ‘80%’
Global Search: If enabled, visitors will be able to search anything to find specific items across your Google Drive in a short time. If disabled, the search will be performed only on the selected source folders. Keep in mind, disabling the global search may take a longer time to perform the search.
Browser View: This option is given to let you change your browser view to List or Grid. Select anyone you feel better about and give it a test.
File Numbers: The number of media files you want to show from your Google Drive, can be controlled from this option. Only type numeric numbers only here. If you want to show all, type -1.
Sorting: Using this feature you can sort files by Name, Size, Created Date, Modified Date, and Ascending, or Descending Direction. Select the option you are thinking to implement.
Now click Next.
Step-5: Configuring Permissions Tab
Now you will be redirected to the Permission tab. Here you will mostly work on permission-related tasks for your File Search module.
Display for: Using this option you can allow permission of your files to everyone and logged-in users. You can also filter manually by user roles or any specific users.
Click Save Changes and copy the shortcode from the shortcode builder page.
Now you can use the shortcode to allow users to search Google Drive files from your WordPress Website, any posts, or pages.