rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Chris on June 04, 2008, 03:25:33 PM

Title: RSS for changes
Post by: Chris on June 04, 2008, 03:25:33 PM
Little wishlist:
Thanks.
Title: Re: RSS for changes
Post by: Foggy on June 05, 2008, 06:53:57 AM
you can easily create an rss feed that displays only the items that are marked as new, for either an entire folder or the complete file system by using files.lst or by building it into the template.

for my example though, you will have to copy the below code into notepad and save it as "filelist.tpl" not filelist.tpl.txt. place the file in the same folder as your hfs executable and point your browser to http://localhost:PORT/files.lst

you can easily edit the below code so that it is valid rss. This is just an example of how easy it is, to help you get started.
To understand how the template system works, have a look in the wiki (http://www.rejetto.com/wiki).



%files%
[files]
%list%
[file]
{.if|{.get|is new.}|<item label="%item-name%" url="%folder%%item-url%"/>.}
Title: Re: RSS for changes
Post by: rejetto on June 16, 2008, 02:31:45 AM
great, foggy
Title: Re: RSS for changes
Post by: Rarst on June 28, 2008, 07:18:06 AM
http://www.rejetto.com/forum/index.php?topic=5846.msg1034640#msg1034640

Post with decent RSS template I made for filelist.tpl. There are some limitations of this method discussed there as well.