DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:filterrss

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Both sides next revision
plugin:filterrss [2021-01-27 12:06]
solewniczak remove donation url
plugin:filterrss [2021-03-01 19:36] (current)
Aleksandr [Syntax]
Line 57: Line 57:
 ===== Syntax ===== ===== Syntax =====
  
-[filterrss url condition1 && condition2 && condition3 ORDER BY filed DESC/ASC]+  [filterrss url condition1 && condition2 && condition3 ORDER BY filed DESC/ASC]
  
-  * url - the url to rss feed. Ex. http://slashdot.org/index.rss +  * ''url'' -- the url to rss feed. Ex. %%http://slashdot.org/index.rss%% 
-  * contition - filter to be used over the feed. Currently there are 4 rss feed attributes suported in the contitions: +  * ''contition'' -- filter to be used over the feed. Currently there are 4 rss feed attributes suported in the contitions: 
-    * pubDate - the publication date of the entry. Date to compare should be given in an format recognized by PHP's strtotime function.  Ex. pubDate>=2012-05-02 (when I was writing this doc I've realized that it should be also possible to use relative date in here such as 1 month, 1 year etc. I will add it soon.) +    * ''pubDate'' -- the publication date of the entry. Date to compare should be given in an format recognized by PHP's strtotime function.  Ex. ''%%pubDate>=2012-05-02%%'' (when I was writing this doc I've realized that it should be also possible to use relative date in here such as 1 month, 1 year etc. I will add it soon.) 
-    * title - the title of the entry. Of course you can use only equal operation here(ex. title="My project"). The comparsion string can be quoded by " or ' or nothing if it doesn't contain any spaces. You can use percent sign here(%) which represents 0 or more chars. You can use it in order to find rss entries that contains something it the title. For ex. this condition is finding all rss etries that contains Linux in their titles: title="%Linux%"  +    * ''title'' -- the title of the entry. Of course you can use only equal operation here(ex. %%title="My project"%%). The comparsion string can be quoded by ''%%"%%'' or ''<nowiki>'</nowiki>'' or nothing if it doesn't contain any spaces. You can use percent sign here (''%'') which represents 0 or more chars. You can use it in order to find rss entries that contains something it the title. For ex. this condition is finding all rss etries that contains Linux in their titles: ''%%title="%Linux%"%%'' 
-    * description - description of the entry. The rules are the same as for the title. +    * ''description'' -- description of the entry. The rules are the same as for the title. 
-    * link - link of rss entry.  The rules are the same as for the title. +    * ''link'' - link of rss entry.  The rules are the same as for the title. 
-  * ORDER BY filed_name - it's optional and allows you to sort feeds in the diffirent order that they appear in XML. filed must be one of condition fileds. After the filed you can put DESC to show the entries in reverse order.(If you want you can also use ASC in place of desc but it does nothing) +  * ''ORDER BY filed_name'' -- it's optional and allows you to sort feeds in the diffirent order that they appear in XML. filed must be one of condition fileds. After the filed you can put ''DESC'' to show the entries in reverse order.(If you want you can also use ''ASC'' in place of desc but it does nothing) 
-  * LIMIT entries_nubmer - this allows you to determine how many entries should be displayed.+  * ''LIMIT entries_nubmer'' -- this allows you to determine how many entries should be displayed.
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
plugin/filterrss.txt · Last modified: 2021-03-01 19:36 by Aleksandr