Shortcode

Basic Shortcode Usage

[eeSFL]

Simply place this bit of shortcode in any Post, Page or Widget that you would like the plugin to appear. Use the settings tabs to define the overall look and functionality.

Shortcode Attributes

Attributes allow you to customize the look and functionality.

Showing a Specific Folder (PRO VERSION)

Specify the Folder Path from Main List

[eeSFL showfolder="folder1/folder2"] (case-sensitive)

If there are sub-folders in this location, users will be able to open them, but will not be able to go above the folder defined in the shortcode.

Optional Attributes

These attributes are used when you have the same file list displayed in more than one place. You can use these shortcode attributes to override the main list settings to customize the list for the location.

Show or hide the File List. Options are YES, ADMIN, USER, or NO. (all caps)

[eeSFL showlist="USER"]

Show or hide the Uploader. Options are YES, ADMIN, USER, or NO. (all caps)

[eeSFL allowuploads="ADMIN"]

Show or hide the file thumbnail column. Options are YES or NO. (all caps)

[eeSFL showthumb="YES"]

Show or hide the file date column. Options are YES or NO. (all caps)

[eeSFL showdate="NO"]

Show or hide the file size column. Options are YES or NO. (all caps)

[eeSFL showsize="YES"]

Show or hide the table header. Options are YES or NO. (all caps)

[eeSFL showheader="NO"]

Show or hide the file actions links. Options are YES or NO. (all caps)

[eeSFL showactions="NO"]

Specify a sort order for the file list

[eeSFL sortby="Name, Date, Size, or Random" sortorder="Descending or Ascending"]

File Access Manager(Pro Extension)

Define the file list to be displayed

[eeSFL list="8"]

Search and Pagination (Pro Extension)

Show or hide the search form. Options are YES or NO. (all caps)

[eeSFL search="NO"]

Enable or disable pagination. Options are YES or NO. (all caps)

[eeSFL paged="NO"]

Define the number of files shown per page.

[eeSFL filecount="25"]

Place a file list search form anywhere on your website. Use the permalink for the page where your file list to be searched is located. Note the code is eeSFLS for this instance.

[eeSFLS permalink="http://website.com/your-file-list-page/"]

41 thoughts on “Shortcode”

  1. Mitch,

    It would be nice in the display of the library to be able to set the breadcrumb on one but not all: [eeSFL showbreadcrumb="YES"] rather than a global option that applies to all.

    Bruce

    Reply
    • Yes, I can add that attribute. I will add that in 5.2.10 (Pro). In the meantime you can hide the breadcrumb in specific areas using CSS in your theme…

      .page-id-61 .page.eeSFL_FolderBreadcrumb { display: none; }

      Look at the opening tag in your source to get the proper page ID

      Alternatively, you could add the File Access Manager extension. This would give you the ability to create multiple lists, each using its own settings. You would then use the “list” attribute to define the list, much like using “showfolder” to define the folder.

      Reply
  2. Hi Mitch, this product looks great, it is pretty much what I am looking for. One thing though, would it be possible to apply some sort of wildcard filter for the files to be displayed? I have a bunch of pdf files in a folder called “User manuals”, now I want on my product pages only the relevant files. For example my product with partnumber “180”:
    Can I use a short code like this: [eeSFL showfolder="This-Folder/180*.pdf"] which shows a list of only the PDF files starting with filename “180”?

    Reply
    • Hi. Sorry, but there is no support for wildcards to filter the list. For your application I would suggest keeping your public files in a separate folder. Alternatively, you could add the File Access Manager extension and choose which files in a Restricted list are available to specific users or the public.

      Reply
  3. Hi, can I control who sees what files when using the file search?

    Place a file list search form anywhere on your website. Use the permalink for the page where your file list to be searched is located. Note the code is eeSFLS for this instance.
    [eeSFLS permalink="http://website.com/your-file-list-page/"]

    Reply
  4. Hi, can you have more than one folder in shortcodes? [eeSFL showfolder="74466/D001008" showfolder="D001247"] or [eeSFL showfolder="74466/D001008, D001247"] ??

    Thank you

    Reply
    • You cannot use the shortcode to define more than one folder location, but you can use more than one shortcode on the page…

      [eeSFL showfolder="74466/D001008"]

      [eeSFL showfolder="D001247"]

      Just be aware that some functionality, like uploading and front-side manage, will only work for the first list.

      Reply
  5. Hello, thank you for your plugin. I purchased the Pro version. I would like to have shortcode to allow Edit or Move. In other words, be able to turn on and off the Front-Side Manage setting on a page. It appears it is a global setting under “Display Settings”, but I would like to turn it on or off depending on the page.

    Reply
  6. I’d like to be able to create shortcodes that allow specific roles or capabilities to upload files. Is this possible?
    For example, I have a number of folders that I want different users to maintain; one for bike route maps, another for newsletters and another for meeting minutes. Each of the users for the different folders has a different role (e.g.,, map_manager, newsletter_editor, secretary) and I also want Editors and the Administrator to have the ability to upload files to each of these folders. In other words, for “maps” I want map_manager capability AND Editor AND Administrator to be able to upload files to the “maps” folder.

    Thank you

    Reply
    • This is not possible currently. However, I am working on a File Access Manager extension that would do most of what you describe, except for the combination of built-in and custom roles you describe for your maps folder. List access would be defined either by a minimum role for built-in roles, or matched roles for custom roles.

      Reply
    • Hello, how do I use filters?

      There are two action hooks available:
      Existem dois ganchos de ação disponíveis:

      eeSFL_UploadCompleted and eeSFL_UploadCompletedAdmin

      These fire after a successful upload job.
      Eles são acionados após um trabalho de upload bem-sucedido.

      Reply
  7. Hi Mitch,
    I have the folder extension with one folder hidden behind a front-end page with a password. Is it possible to delete files on the front-end by setting an option with a shortcode. I can see why you wouldn’t want a delete option on an open access front-end page but maybe not if it is limited to trusted users.
    Thanks,
    Simon

    Reply
    • Yes, go to the Display Settings tab and tick the Front-Side Manage box. It’s all the way at the bottom. This will give the same file controls on the front-side as you see on the back.

      Reply
  8. Ciao Mitch ho installato la versione 4, ho insetrito nei files degli elenchi la descrizione, ma le descrizioni non appaiono sui motori di ricerca.
    Devo attivare qualcosa?
    Grazie

    Reply
    • Which search engine do you refer to? The WordPress search will not see the description. Google will include them if you show them on your site. This will take time though.

      A quale motore di ricerca ti riferisci? La ricerca di WordPress non vedrà la descrizione. Google li includerà se li mostri sul tuo sito. Ci vorrà del tempo però.

      Reply
  9. The instructions all over the web regarding your Simple File List is highly deficient and confusing regarding the following points:
    1. Which the base folder for the files to display for downloading? Nowhere is this information given.
    2. Can we implement more than one instance of Simple File List?
    3. What are the above parameters for the multi-folder version?

    Reply
    • I apologize for the highly deficient instructions.

      1. The base folder is wp-content/uploads/simplefilelist/, but you can change this to any directory which is below your WordPress home folder.
      2. Using the Folder Extension, you can place multiple lists on your website.
      3. There are no further parameters when using folders. Each folder you create will be within the main folder.
      Reply
    • If you add the Search & Pagination extension, you can show just the ten most recent files per page. Alternatively, the folder extension would allow you to put just the ten files needed on a specific page.

      Reply
    • Once the extension plugin is installed and activated, go to the file list on the main plugin’s settings page. At the top you will see a Create Folder input. Once you create your first folder, you will see the rename and delete options.

      Reply
  10. Hi Mitch i purchased your plugin addon for folder management, could i add some tags to file searhable on search engines?
    Thank you .

    Reply
    • The easiest way to create complex shortcodes is to go to the Instructions tab in the plugin settings. Use the shortcode builder to pick-and-choose the options you need. Then you can copy-and-paste the code, or choose to create a new page/post using it.

      Reply
    • Yes, you can make multiple lists if you add the folder extension. Each sub-folder can then be displayed wherever you like using the shortcode like so: [eeSFL showfolder="This-Folder"], or [eeSFL showfolder="This-Folder/This-Sub-Folder"]

      Items kept above the chosen folder are not accessible from the front-end of the site, so you can have both public and private files.

      Reply
    • Hello. The Search & Pagination extension has not been released yet, but I hope to have it published this week. Look for an update to Simple File List soon.

      Reply

Leave a Comment

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