karldenton Posted October 12, 2009 Posted October 12, 2009 Hi, Anyone know of an extension in Joomla where you can show the contents of a folder and list it in a nice html page ? We are hoping to do a section on "Letter sent home" and if they are saved in a folder on the system it would be nice for Joomla to be able to list the contents of the folder and enable staff to download them.
SimpleSi Posted October 12, 2009 Posted October 12, 2009 (edited) If your running old 1.0 or 1.5 in legacy then you can use Docman to store all your letters and then just stick a link to the appropriate url - e.g - click on the newsletters link to view all the schools recent newsletters. Same system would do for letters home. I did develop similiar functionality using some PHP code directly read a folder and display the files - All Saints CE Primary & Nursery School - Newsletters and you can have a copy of the code but you'd have to adapt in for Joomla. regards Simon Code attachedfilelist.zip Edited October 13, 2009 by SimpleSi 1
mossj Posted October 12, 2009 Posted October 12, 2009 (edited) I used 1.5 native, and used remository to similar effect here see newsletters, calander, useful downloads etc. Although the NM that took over the site when I left has fluffed it up by submitting the newsletters out of order.... Edited October 12, 2009 by mossj
rocknrollstar Posted October 12, 2009 Posted October 12, 2009 Hi, I've done exactly what you are after. On our school Windows system, there is a shared folder where teachers can dump files (e.g. letters). I use a free ftp sync program to sync this local folder to a directory on the FTP server where Joomla is installed. The ftp sync program is run as a scheduled task 4 times a day, making sure it's up-to-date. So assuming the letters are on a directory on the server, I created an article page in Joomla called letters. I then wrote a content plugin which has the tags {dirlist myfolder/letters} and this will recursively display the files/folders listed in myfolder/letters. It displays a simple table with date and size, and is ordered according to date modified, showing newest file at the top. For sub directories, it will put the subfolder name in bold and list the files below it, then leave a blank and go to the next file/folder. Security is handled by the Joomla web server. You can see an example of it in School Letters or Showcase Area In the letters example, the artcile/page simply looks like: {dirlist letters/whole_school} {dirlist letters/lower_school} {dirlist letters/upper_school} etc. Donations appreciated, but you're welcome to it all if it sounds good. 2
mossj Posted October 12, 2009 Posted October 12, 2009 Hi, I've done exactly what you are after. On our school Windows system, there is a shared folder where teachers can dump files (e.g. letters). I use a free ftp sync program to sync this local folder to a directory on the FTP server where Joomla is installed. The ftp sync program is run as a scheduled task 4 times a day, making sure it's up-to-date. So assuming the letters are on a directory on the server, I created an article page in Joomla called letters. I then wrote a content plugin which has the tags {dirlist myfolder/letters} and this will recursively display the files/folders listed in myfolder/letters. It displays a simple table with date and size, and is ordered according to date modified, showing newest file at the top. For sub directories, it will put the subfolder name in bold and list the files below it, then leave a blank and go to the next file/folder. Security is handled by the Joomla web server. You can see an example of it in School Letters or Showcase Area In the letters example, the artcile/page simply looks like: {dirlist letters/whole_school} {dirlist letters/lower_school} {dirlist letters/upper_school} etc. Donations appreciated, but you're welcome to it all if it sounds good. You should release that in the extensions directory! it's an excellant way of doing things! BUT you should bar your teachers from putting (shudder) word documents on there... PDF's are the way forward and look more professional!
rocknrollstar Posted October 13, 2009 Posted October 13, 2009 I know there's a php based doc-to-pdf script, but haven't had time to integrate it yet. I'm a full time teacher, as well as the network/technical manager for the school, so it keeps me busy... I've tried to release it to the Joomla extensions repos, but it's too complicated. I went through the process, but got a message saying I couldn't used a file hosting site to upload the plugin, but then couldn't see where to upload the file to. Should be much easier IMHO. The good thing is that the teachers just copy a paste files into the shared folder. They have been warned that the files will go straight to the website (somepoint that day, anyway).
no215 Posted November 15, 2009 Posted November 15, 2009 Hi! I'm a teacher from Luxembourg (EU) and I also look for such a solution! I looked everywhere, but didn't find a thing! Could you please tell me where I can find the plugin file that displays the files? It would be very useful for our school!
rocknrollstar Posted November 15, 2009 Posted November 15, 2009 Hi, if you let me know your email address, I can email you over the plugin with instructions for Joomla 1.5.
mossj Posted November 16, 2009 Posted November 16, 2009 [email protected] Thanks a lot!!! May want to put that in a pm to him could get picked up by spammers otherwise.
rocknrollstar Posted January 14, 2011 Posted January 14, 2011 PM me and let me know your email address
Qbick Posted April 26, 2011 Posted April 26, 2011 Hi, I'm interested on that .pdf file lister on joomla articles... I mean the folder file lister. Email it to kuupik(at)gmail.com please?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now