I am also able to embed the script into a Freeway page using Insert > Markup Item. However in this case, quite naturally, the PHP script gives the contents of the folder where the parent .php page resides.
What I would really like is to be able to add my chosen path name into the script so that it would display the index of a folder I specify rather than the contents of where the page lives - I hope this makes sense! Is this possible?
There seems to be a part of the code whereby the script works out where it is so I’m hoping there may be an edit so that I can tell it where to look instead.
Also, as a little extra, is there anyway to reverse the sorting of the list? At present it’s sorted by file name A to Z and I’d sometimes like it to go from Z to A
Thanks to Keith’s “PHP and MySQL Demystified” in December’s MacUser I’ve picked up a bit more PHP knowledge but editing the File List is way out of my league.
Hopefully if the changes are possible the edited scripts may be useful to others as well or may even be the starting point of an action.
Try my AjaxFileListing Action instead. It’s made to do what you want,
and it will allow much more styling. If you embed the file_list
script, you’re probably making a mess of the HTML, because that script
makes an entire page, and if you embed it in another page, you’ll have
a bicephalous page!
I am also able to embed the script into a Freeway page using Insert
Markup Item. However in this case, quite naturally, the PHP script
gives the contents of the folder where the parent .php page resides.
What I would really like is to be able to add my chosen path name
into the script so that it would display the index of a folder I
specify rather than the contents of where the page lives - I hope
this makes sense! Is this possible?
There seems to be a part of the code whereby the script works out
where it is so I’m hoping there may be an edit so that I can tell it
where to look instead.
Also, as a little extra, is there anyway to reverse the sorting of
the list? At present it’s sorted by file name A to Z and I’d
sometimes like it to go from Z to A
Thanks to Keith’s “PHP and MySQL Demystified” in December’s MacUser
I’ve picked up a bit more PHP knowledge but editing the File List is
way out of my league.
Hopefully if the changes are possible the edited scripts may be
useful to others as well or may even be the starting point of an
action.