Forum
Nested buckets
Hi.
Is it possible to have resource buckets nested within other buckets? Or, is it only possible to use a flat structure like 'Images', 'Newsletters' etc.
For example, if I wish to implement the following structure (to act as a basic document library):
Company1
..Newsletters
....2014
......01.pdf
......02.pdf
......03.pdf
....2015
....2016
..Reports
.... Can this be achieved in a way other than by manually creating each bucket individually, such as
"Company1_Newsletters_2014"
"Company1_Newsletters_2015"
"Company1_Newsletters_2016"
"Company1_Reports"
etc.
Thanks
That can only be achieved by specifying the buckets in your
buckets.php
file.Hi Drew
Thanks for your quick response!
So to clarify, I can only create "flat" buckets, and these all need to be created in my buckets.php file? Further, if I wish for example to add a new bucket for each month, I will need to manually add these every month to buckets.php as required?
You don't necessarily need to do so manually. The buckets list is a PHP array - so that file can generate the list of buckets by whatever means. That could be by statically declaring them or figuring them out dynamically via scripted logic.