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
Help with notepad
Re: Help with notepad
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.
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
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
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
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:
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.
Code: Select all
{list_downloads folder="uploads/images/parentzone/ParentsForumMinutes/" colheaders="true" sort="fd"}
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.