rejetto forum

RSS for changes

Guest · 4 · 3754

0 Members and 1 Guest are viewing this topic.

Chris

  • Guest
Little wishlist:
  • RSS feed to subscribe to changes in a directory or entire file system.
  • Continued awesomeness.
Thanks.


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
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.



%files%
[files]
%list%
[file]
{.if|{.get|is new.}|<item label="%item-name%" url="%folder%%item-url%"/>.}


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile

Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile
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.