+ Post New Thread
Results 1 to 13 of 13
Web Development Thread, Joomla Folder Content in Coding and Web Development; Hi, Anyone know of an extension in Joomla where you can show the contents of a folder and list it ...
  1. #1

    Join Date
    Apr 2007
    Location
    York
    Posts
    559
    Thank Post
    10
    Thanked 4 Times in 4 Posts
    Rep Power
    20

    Joomla Folder Content

    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.

  2. #2

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,822
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168
    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 attached
    Attached Files Attached Files
    Last edited by SimpleSi; 13th October 2009 at 09:20 PM.

  3. Thanks to SimpleSi from:

    speckytecky (26th April 2011)

  4. #3
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    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....
    Last edited by mossj; 12th October 2009 at 10:07 PM.

  5. #4
    rocknrollstar's Avatar
    Join Date
    Jun 2008
    Location
    Hampshire
    Posts
    435
    Thank Post
    387
    Thanked 28 Times in 24 Posts
    Rep Power
    20
    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.

  6. 2 Thanks to rocknrollstar:

    Devontechie (15th November 2009), speckytecky (16th November 2009)

  7. #5
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Quote Originally Posted by rocknrollstar View Post
    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!

  8. #6
    rocknrollstar's Avatar
    Join Date
    Jun 2008
    Location
    Hampshire
    Posts
    435
    Thank Post
    387
    Thanked 28 Times in 24 Posts
    Rep Power
    20
    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).

  9. #7

    Join Date
    Nov 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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!

  10. #8
    rocknrollstar's Avatar
    Join Date
    Jun 2008
    Location
    Hampshire
    Posts
    435
    Thank Post
    387
    Thanked 28 Times in 24 Posts
    Rep Power
    20
    Hi, if you let me know your email address, I can email you over the plugin with instructions for Joomla 1.5.

  11. #9

    Join Date
    Nov 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    jsteffen@internet.lu

    Thanks a lot!!!

  12. #10
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Quote Originally Posted by no215 View Post
    XXXX@XXXXX.lu

    Thanks a lot!!!
    May want to put that in a pm to him could get picked up by spammers otherwise.

  13. #11

    Join Date
    Jan 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    hi i need this ext how can i get it

  14. #12
    rocknrollstar's Avatar
    Join Date
    Jun 2008
    Location
    Hampshire
    Posts
    435
    Thank Post
    387
    Thanked 28 Times in 24 Posts
    Rep Power
    20
    PM me and let me know your email address

  15. #13

    Join Date
    Apr 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Folder showing in Joomla article?

    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?

SHARE:
+ Post New Thread

Similar Threads

  1. Reading folder content into a browser
    By Fontayne56 in forum Web Development
    Replies: 6
    Last Post: 7th December 2009, 03:46 PM
  2. Replies: 3
    Last Post: 10th July 2009, 03:11 PM
  3. vbscript to copy a folder & delete a folder
    By MicrodigitUK in forum Scripts
    Replies: 2
    Last Post: 29th January 2009, 12:43 PM
  4. Problem inserting images into Joomla content
    By Ric_ in forum EduGeek Joomla 1.0 Package
    Replies: 2
    Last Post: 23rd November 2007, 03:05 PM
  5. Joomla content organisation query
    By carolla in forum EduGeek Joomla 1.0 Package
    Replies: 2
    Last Post: 8th November 2007, 08:45 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •