I just revved AjaxFileListing to include support for recursive
directory listings. If you list the contents of a folder which in turn
includes other folders, these sub-folders will now appear, rather than
simply being hidden as before. This behavior will nest to whatever
depth you like without any further configuration needed. If you click
on one of the folder names in the list, you will see the contents of
that folder, along with a new link at the top of the list labeled “Up
a Level”. That link will navigate up one directory level, unless it is
already at the top. This link is in a list item with the classname
‘updir’, so you can control what it looks like at the CSS level.
Everything else about the Action remains unchanged.
Just noticed that this doesn’t support these nested folders in no-
JavaScript mode. I can fix that, but I’ve run out of time to work on
it today. The Action still supports no-JS for the base file folder, as
before.
Walter
On Feb 26, 2009, at 9:27 AM, Walter Lee Davis wrote:
I just revved AjaxFileListing to include support for recursive
directory listings
I am working on a new site and I have a graphic that I want to
separate into 4 pieces then make a rollover but unsure what program I
could use to do that “simply”
if you want to see the graphic - it is on the cover of my original
home site: http://www.grdesigns.net
I am working on a new site and I have a graphic that I want to
separate into 4 pieces then make a rollover but unsure what program I
could use to do that “simply”
if you want to see the graphic - it is on the cover of my original
home site: http://www.grdesigns.net
The update is great! Thanks. I modified the published index.php to add the reverse sort parameter to scandir and got the rest of what I needed. Now all I have to do is remember to modify it again should I ever republish it.
As long as you name your files so that they are sortable (ISO dates,
maybe) then this will work. I am working on adding a file modification
time sort to the function, and then I’ll expose a user interface
switch so you can turn that on and off.
Walter
On Feb 26, 2009, at 4:38 PM, Starfish Jim wrote:
The update is great! Thanks. I modified the published index.php to
add the reverse sort parameter to scandir and got the rest of what I
needed. Now all I have to do is remember to modify it again should I
ever republish it.
As long as you name your files so that they are sortable (ISO dates,
maybe) then this will work.
Walter,
Yup. The issues are named “PublicationName YYYYMM” and the archive directories are “YYYY”. So when you do a reverse sort the publications are listed with the most current on top followed by the directories with the most recent previous year first. Exactly what I wanted. The descending into directories and back up works great. All I’ve got left is to learn some CSS to format things correctly. Ahhh, there’s always one last “little” thing.