Tree navigation/ archive
-
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
-
base="uploads"is incorrect. It should bebase=1orbase=2orbase=3orbase=4orbase=5. Those are the only correct options for thebaseattribute. They are configured on your File Away settings page, under Basic Configuration. You can extend the base directory in your shortcode with thesubattribute.You have
excludedirs=""in your shortcode. You can remove that, since it’s not doing anything.You have
datelabel="Date"andsortfirst="mod-desc"in your shortcode, and then you havemod="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"]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
The topic ‘Tree navigation/ archive’ is closed to new replies.