Support » Plugin: Media Library Assistant » Create Table to Display Pdfs

  • Resolved Sinbad11

    (@sinbad11)


    Hi Dave,
    I was here before and you were able to help. I thought it would be simple to achieve my pdf table, but I can’t get the [+title+] or other variables to render…? I am following the code from a previous solution (https://wordpress.org/support/topic/fixed-column-widths/), but I am having issues with the short code. You can see what is printing to the screen by looking at my link to page i need help with.

    Not sure why it won’t render content…? Any help would be appreciated.

    Pretty much copied the code from the example mentioned above. But I will post below:
    [mla_gallery post_mime_type=application/pdf mla_style=doc-table-style mla_markup=doc-table-markup attachment_category=sample]

    [mla_gallery post_mime_type=application/pdf mla_style=doc-table-style mla_markup=doc-table-markupattachment_category=sample posts_per_page=12 mla_output=”paginate_links,prev_next”]

    Name
    doc-table-markup
    The name/“slug” is the URL-friendly, unique key for the template. It must be all lowercase and contain only letters, numbers and hyphens (-).

    Description
    Table markup
    Notes for the Shortcodes tab submenu table.

    Arguments
    post_parent=all
    post_mime_type=application/pdf
    size=icon_only
    mla_image_attributes=’width=”16″ height=”16″‘
    columns=1
    link=download
    mla_disposition=attachment
    orderby=”name DESC”

    Default shortcode parameter values.

    Open
    <h3>[+template:([+query:my_gallery_title+])+]</h3>
    <h3>hello</h3>
    <table id=”[+selector+]” class=”gallery galleryid-[+id+] gallery-columns-[+columns+] gallery-size-[+size_class+]”>
    <tr class=”header-row”><th>Document Title – click to view</th><th>Icon shows<br />File type</th></tr>
    Markup for the beginning of the gallery. List of parameters, e.g., [+selector+], on Documentation tab.

    Row Open
    <tr class=”gallery-row”>
    Markup for the beginning of each row in the gallery.

    Item
    <td class=”gallery-title”>
    <!–[+title+] –>
    [+title+]
    </td>
    <td class=”gallery-icon”>
    hello
    </td>
    Markup for each item/cell of the gallery.

    Row Close
    </tr>
    Markup for the end of each row in the gallery.

    Close
    </table>
    Markup for the end of the gallery.

    styles:
    Name
    doc-table-style
    The name/“slug” is the URL-friendly, unique key for the template. It must be all lowercase and contain only letters, numbers and hyphens (-).

    Description
    Table styles for documents(pdfs)
    Notes for the Shortcodes tab submenu table.

    Styles
    <style type=’text/css’>
    #[+selector+] {
    margin: 0;
    width: 100%;
    }
    #[+selector+] tbody {
    border: 0px solid #ff0000;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    }
    #[+selector+] table {
    border: 0px solid #ff0000;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    }
    #[+selector+] .gallery-title {
    width: 80%;
    height: 16;
    vertical-align: top;
    color:red;
    }
    #[+selector+] .gallery-icon {
    width: 20%;
    height: 16;
    vertical-align: top;
    }
    #[+selector+] td.gallery-icon img {
    border: 0px solid #FF0000;
    }
    #[+selector+] .gallery-row {
    float: none;
    text-align: left;
    width: auto;
    padding: 0;
    }

    #[+selector+] td {
    padding: 0.4em;
    }
    #[+selector+] .header-row {
    float: none;
    text-align: left;
    width: auto;
    font-weight: bold;
    }
    #[+selector+] .gallery-caption {
    margin-left: 0;
    vertical-align: top;
    }
    </style>
    List of substitution parameters, e.g., [+selector+], on Documentation tab.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sinbad11

    (@sinbad11)

    Hi Dave,
    I was able to modify the code and achieve my desired results. However, I do have another question- does your plugin provide front-end access to upload files to the media library or do you recommend a plugin that will work with MLA plugin to upload files from the page instead of from the media library? Lastly, has anyone incorporated data Tables with your plugin.

    Thanks again for the awesome plugin and killer support!!!

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and for all of the details you provided. Thanks in particular for working out your own solution while awaiting my response. I had a look at your “pdf-doc-table-2” page and it looks like it is working well.

    Regarding your new question, MLA does not have any features that support uploading files from the “front end”. For earlier topics I have tested two other plugins for these features and they seem to be fine. Note that you may have to modify your wp-config.php file, adding the MLA_AJAX_EXCEPTIONS constant to get MLA to execute mapping rules during these uploads.

    Read through these topics for more information:

    Uploading Media Files

    Automatically adding the author as a category

    The plugins are:

    WordPress File Upload

    Frontend Uploader

    I’m sure there are others, and if you find one you like, post an update here. I will do what I can to make sure MLA is compatible with it.

    I do not know of anyone who has “incorporated data Tables” with MLA.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding table-based gallery displays. Thanks for your continued interest in the plugin.

    Thread Starter Sinbad11

    (@sinbad11)

    Thanks, Dave. I will check out those links- I appreciation your quick response!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.