• John

    (@jbculpepper)


    Hi, Can Document Gallery be used in a side widget? I can’t find any reference to that in this forum. My goal would be to put key documents relevant to a particular pages content in the sidebar.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    Hi John,

    This is something that’s never been considered since (surprisingly) no one has ever requested this functionality.

    I think this sounds like a useful configuration so it’s now on the TODO list. Can’t tell you when this would actually show up — depends on when I find some time — but it’ll come at some point ??

    -Dan

    Thread Starter John

    (@jbculpepper)

    Dan,
    Thanks for the reply. I’m relieved that it wasn’t an obvious feature and I missed it. Also glad that it’s in the to-do list.
    Here is the kluge that I’ve come up with using CSS to style. It’s nowhere near as flexible as a solution that the plugin would offer but it will serve for a while. Changing the documents will be messy if needed and of course I have to have many such widgets with page visibility in play to filter results. Still… it works for now. Thanks again. jc

    <div class="widget-forms">
        <a href="https://site-name/wp-content/uploads/document-1.pdf" target="_blank">
            <figure>
                <img src="https://site-name/wp-content/uploads/pdf-icon.png" width="48px" height="48px" />
                <figcaption class="figcaption-widget">Document 1 Name</figcaption>
            </figure>
        </a>
    	<br>
        <a href="https://site-name/wp-content/uploads/document-2.pdf" target="_blank">
            <figure>
                 <img src="https://site-name/wp-content/uploads/pdf-icon.png" width="48px" height="48px"/>
                <figcaption class="figcaption-widget">Document 2 Name</figcaption>
            </figure>
        </a>
    </div>
    Plugin Author demur

    (@demur)

    Hi John!

    Despite absence of native support for widgets in DG out of the box, there is a quick hack for now to enable it ??
    You should include given below string to Your active WordPress theme’s functions.php file:
    add_filter('widget_text', 'do_shortcode');
    This will allow usage of shortcodes (including dg) in widgets ??
    Please note: use of default [dg] (without specifying id or ids property) will result in displaying respective attachments for each requested post.

    PS: If You’ve found our answers and/or the plugin useful, please rate the efforts. Thanks!

    • This reply was modified 8 years, 5 months ago by demur.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use is Widget?’ is closed to new replies.