Help with notepad

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
rajbps
New Member
New Member
Posts: 3
Joined: Mon Oct 29, 2012 11:55 pm

Help with notepad

Post 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
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Help with notepad

Post 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.
rajbps
New Member
New Member
Posts: 3
Joined: Mon Oct 29, 2012 11:55 pm

Re: Help with notepad

Post 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
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Help with notepad

Post 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.
Post Reply

Return to “The Lounge”