rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: Chris on June 04, 2008, 03:25:33 PM
-
Little wishlist:
- RSS feed to subscribe to changes in a directory or entire file system.
- Continued awesomeness.
Thanks.
-
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%"/>.}
-
great, foggy
-
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.