• Resolved craiglthompson

    (@craiglthompson)


    Hi,

    Could you tell me how I can make the tree navigation work so that it would show “newsletters/” like an archive?
    So that from our ‘2015 newsletters’ page we can use the tree to go back to “newsletters/” and then select “2014/”

    I hope that makes sense and I’ve explained it clearly, we love the plugin and would really be appreciative of your support.

    This is what I’m working on: http://www.ruthgorse.leeds.sch.uk/academy-life/newsletter/
    and this is the shortcode: [fileaway type=”table” base=”uploads” sub=”newsletter/2015″ excludedirs=”” paginate=”true” pagesize=”10″ searchlabel=”Search” datelabel=”Date” customdata=”Year Group” sortfirst=”mod-desc” mod=”no” showrss=”true” flightbox=”pdfs” boxtheme=”silver-bullet” directories=”on” theme=”silver-bullet”]

    -Craig

    https://wordpress.org/plugins/file-away/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author thomstark

    (@thomstark)

    base="uploads" is incorrect. It should be base=1 or base=2 or base=3 or base=4 or base=5. Those are the only correct options for the base attribute. They are configured on your File Away settings page, under Basic Configuration. You can extend the base directory in your shortcode with the sub attribute.

    You have excludedirs="" in your shortcode. You can remove that, since it’s not doing anything.

    You have datelabel="Date" and sortfirst="mod-desc" in your shortcode, and then you have mod="no" directly following it. That means you’re telling it to sort by the Date Modified column first, while also telling it not to put the Date Modified column in the table at all. Kind of counter-productive.

    In answer to your question, if you want them to be able to navigate to newsletters, you have to begin the tree at newsletters. The user cannot navigate backwards from the initial starting point (otherwise they could look at anything they desire on your server). So the correct shortcode would be (and I’m assuming Base 1 = uploads):

    [fileaway type="table" base="1" sub="newsletter" paginate="true" pagesize="10" searchlabel="Search" datelabel="Date" customdata="Year Group" sortfirst="mod-desc" showrss="true" flightbox="pdfs" boxtheme="silver-bullet" directories="on" theme="silver-bullet"]

    Thread Starter craiglthompson

    (@craiglthompson)

    I got myself in a confused muddle, thanks for helping me out!
    It’s a good solution (we definitely don’t want them looking at anything they desire on your server) :o)

    Craig

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

The topic ‘Tree navigation/ archive’ is closed to new replies.