Page 1 of 1

Help with notepad

Posted: Sun Jun 23, 2013 7:37 pm
by rajbps
Hi Team,

I am a newbie and I have a small problem. I have a systemthat creates a logfile in txt on a daily basis. So there is a log folder where all the files are saved with the following format: UserLog_13-06-21.txt

If I open it in notepad, its all over the place so I open it in an application called jujuedit which alligns everything nead and tidy.

Now I need to find a way to so that its displayed on a webpage by the date and if the user clicks on that date, it opens that in a way where its all formatted correctly.

I am using cmsms as the local intranet for the company.

Is there a way to do this pls.

All the UserLog_13-06-21.txts are saved in a folder.

Thanks for any help.

Raj

Re: Help with notepad

Posted: Tue Jun 25, 2013 12:48 am
by paulbaker
Take a look at
http://dev.cmsmadesimple.org/projects/list_downloads
You just "point" it to the directory where your txt files are saved and it will create and display a table of all the files and the visitor can just click and view in their browser.

Re: Help with notepad

Posted: Tue Jun 25, 2013 8:52 pm
by rajbps
Hiya,

Thanks for the pointer.

I have managed to install it and can see it under tags.

How how can in use it pls.

Sorry I am a newbie in the field

Cheers,

raj

Re: Help with notepad

Posted: Wed Jun 26, 2013 1:22 pm
by paulbaker
You put a {tag} in the page where you want the list of files to show. Here's an example from one of my sites:

Code: Select all

{list_downloads folder="uploads/images/parentzone/ParentsForumMinutes/" colheaders="true" sort="fd"}
The client uploads files to uploads/images/parentzone/ParentsForumMinutes/ and these are automatically shown in the list - no need for them to do anything further.

colheaders shows headings at the top of the table. sort: fd is by filename descending.

Go to Extensions -> Tags -> click Help by list_downloads for a full run down of options.