Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Some_Bored_Dude

    (@some_bored_dude)

    G’day David,

    Thankyou for the feedback. You were right to mark it solved, it’s working as expected :D, even included the search from another form. I’ll include my work and code below for anyone else interested…

    Here’s my end result: https://imgur.com/dQre7Yx

    This is the code of my page…

    <h1>Document Search</h1>
    <form id="mla-search-form" action="." method="post">
    <input id="mla-search-box" name="search-string" type="text" value="" />
    <input id="submit" name="submit" type="submit" value="GO" />
    </form>
    
    [mla_gallery post_mime_type=all post_parent=all attachment_category=document-library columns=1 mla_markup=document-list-view s="{+template:({+request:search-string+}|a-bad-term)+}" mla_nolink_text="No files to show" posts_per_page=50 mla_output="paginate_links,prev_next" mla_link_href="{+page_url+}?search-string={+request:search-string+}"]
    
    [mla_gallery post_mime_type=all post_parent=all attachment_category=document-library columns=1 mla_markup=document-list-view s="{+template:({+request:search-string+}|a-bad-term)+}" mla_nolink_text="Enter a search value above to find what you need" posts_per_page=2]
    
    <br />
    <h2>Document Library</h2>
    [mla_gallery post_mime_type=all post_parent=all attachment_category=document-library columns=1 mla_markup=document-list-view posts_per_page=50]

    On the MLA Gallery page for the template…
    Name: (Really whatever you want)
    document-list-view

    Open:

    <table id='[+selector+]' class='gallery galleryid-[+id+] gallery-columns-[+columns+] gallery-size-[+size_class+] tablepress'>
    <caption style="caption-side:bottom;text-align:left;border:none;background:none;margin:0;padding:0;"></caption>
    <thead>
    <tr>
    <td><strong>Item</strong></td>
    <td><strong>Type</strong></td>
    <td><strong>Author</strong></td>
    <td><strong>Category</strong></td>
    <td><strong>File Type</strong></td>
    <td><strong>Modified</strong></td>
    </tr>
    </thead>
    <tbody class="row-hover">

    Row Open:
    <tr class='gallery-row'>

    Item:

    <td>[+filelink+]</td>
    <td>[+description+]</td>
    <td>[+author+]</td>
    <td>[+terms:attachment_category+]</td>
    <td>[+post_mime_type+]</td>
    <td>[+modified+]</td>

    Row Close:
    </tr>

    Close:

    </tbody>
    </table>

    I have tablepress installed so I’ve added some tablepress classes, in particular the row highlight on hover

    This plugin is very flexible. I highly recommend it to anyone! You’ve done a great job David ??

    G’day,

    Tick the box labelled “Enable Insecure Database Connection” and save. When the page reloads you will see extra options.

    Hope that helps ??

Viewing 2 replies - 1 through 2 (of 2 total)