How to Create List Module?

How to Create List Module?

List Module provides a smart way to display Google Drive files in a structured list format. It enables users to easily view, download, and edit documents directly within the WordPress interface.

Designed for quick access and improved usability, the List Module supports efficient content management and collaboration, making it an essential component for any Google Drive-integrated workflow.

Step-1: Choose List Module

  • Navigate to Google Drive > Module Builder.
  • Click on Add New Module.
  • Select the List Module.
  • Rename the module title if required.

Step-2: Configure Source Tab

  • Select your Google Drive files.
  • Your selected items will be highlighted on the right side.
  • Arrange the items by dragging them up or down.

Here is the detailed breakdown for each setting you will discover there:

  • Use Private Files: Turn ON to upload the files in the private folder linked to the user. Note: If enabled this module will be visible only to logged-in users.
    • Create Private Folder: Turn ON to create and link a folder automatically to the user who has not linked any folder yet, while the user views the module.
      • Folder Name Template: Set a template for the folder name.
      • Parent Folder: Select the parent folder where the automatically created private folders will be created.
      • Template Folder: Select the template folder that will be copied to the new private folder.
      • Merge Folders: Allow merging folders if a folder with the same name already exists.
  • Use ACF field Files: Enable this option to use the ACF field files dynamically as the source for the module. Enter the ACF field name in the ACF Field Key input box to use the files from the ACF field.

Step-3: Configure Filter Tab

If you want to include/ exclude something, this step will be helpful for you. Below, we break down the functionality you can configure in the Filter tab:

  • Allowed Extensions: Enter comma (,) separated file extensions to allow, such as “jpg, png, gif”. Leave empty to show all extension files. When “Allow all” is enabled, exceptions will not be displayed.

Step-4: Configure Advanced Tab

The next step is to set up advanced options. There are multiple customizations you can do depending on your test and needs. Let’s dive into the guide.

  • List Style: Select a style for the view links list.
  • Default Click Action: Set the default click action for the list items (View, Download, or Edit).

Step-5: Configure Notifications Tab

Now you can navigate to the Notifications tab, where you will customize the notification settings configuration.

  • Enable Notifications: Enable email notifications to get notified on various user activities (upload, download, delete, etc).
    • Download Notifications: Receive email notifications whenever files are downloaded through this module.
    • View Notifications: Receive email notifications whenever someone views files through this module.
  • Notification Recipients: Enter the email address where the notifications will be sent. Add multiple email addresses by separating them with a comma (,). You can also set the placeholder tags below as email recipients.
    • Skip Current User Notification: Enable to skip the notification for the user who executes the action.

Step-6: Configure Permissions Tab

After completing the Advanced options customization, head over to the Permission tab. Here you will mostly work on permission-related tasks.

  • Preview: Allow users to preview files.
    • Inline Preview: Open preview in a pop-up lightbox. If disabled, the preview will be opened in Google Drive.
    • View Button Text: Enter the button text for the view button.
    • Filter Users & Roles: Select users & roles who can preview files.
  • Download: Allow users to download files.
    • Download Button Text: Enter the button text for the download button.
    • Filter Users & Roles: Select users & roles who can download files.
  • Edit Documents: Allow users to edit Google Docs and Office documents.
    • Edit Button Text: Enter the button text for the edit button.
    • Filter Users & Roles: Select users & roles who can edit documents.
  • Enable Usage Limits: Enable download restrictions for users to control the download access for this module.
    • Restrictions Period: Select the period for which the download limits will be applied. This will restrict the number of downloads, bandwidth, and other limits based on the selected period.
    • Download Limits: Set the maximum number of files a user can download within the selected period. Keep blank for unlimited.
    • Download Limits per File: Set the maximum number of times the same file can be downloaded by a user within the selected period. Keep blank for unlimited.
    • ZIP Download Limits: Set the number of ZIP files a user can download within the selected period. Leave blank for unlimited.
    • Bandwidth Limits (in MB): Set the maximum bandwidth (in MB) allowed per user during the selected period. Leave blank for unlimited.
    • Exclude Users & Roles: Select the roles and users who will be excluded from the download restrictions.
      • Exclude All: When activated, the download restrictions will be applied only to the selected roles and users.
  • Enable Password Protection: Enable password protection for this module. Users will need to enter the password to access the module.
    • Password: Set the password for this module.
  • Display For: Select the user roles and specific users who are allowed to access the module.
    • Everyone: Set the module visibility to everyone.
    • Logged In: Set the module visibility to logged-in users only.
      • Filter Users & Roles: Select the users and user roles who can see the module.
      • Everyone: When activated, the module will be visible to everyone except for those specifically exempted.
      • Show Denied Message: Show a message to users who don’t have access to the module.
      • Display Login Screen: Display a login message for the modules when authentication is required.

While you have finished everything, click Save Changes and copy the shortcode. Now you can use the shortcode to display the Review & Approve Module inside any posts or pages.

Output