2008-05-16 07:35:13 +02:00
< h1 >< ? php echo __ ( " Labels and SQL Expressions " ) ?> </h1>
2005-11-27 11:56:53 +01:00
2008-05-16 07:35:13 +02:00
< p >< ? php echo __ ( " Label content is generated using SQL expressions. The «SQL expression» is added to WHERE clause of view feed query. You can match on ttrss_entries table fields and even use subselect to query additional information. This functionality is considered to be advanced and requires some understanding of SQL. " ) ?> </p>
2005-11-27 11:56:53 +01:00
2008-05-16 07:35:13 +02:00
< h2 >< ? php echo __ ( " Examples " ) ?> </h2>
2005-11-27 11:56:53 +01:00
2008-05-16 07:35:13 +02:00
< p >< ? php echo __ ( " Match all unread articles: " ) ?> </p>
2005-11-27 11:56:53 +01:00
2008-01-11 08:18:19 +01:00
< code > unread = true </ code >
2005-11-27 11:56:53 +01:00
2008-05-16 07:35:13 +02:00
< p >< ? php echo __ ( " Matches all articles which mention Linux in the title: " ) ?> </p>
2005-11-27 11:56:53 +01:00
2008-01-11 08:18:19 +01:00
< code > ttrss_entries . title like '%Linux%' </ code >
2005-11-27 11:56:53 +01:00
2008-05-16 07:35:13 +02:00
< p >< ? php echo __ ( " Matches all articles for the last week (PostgreSQL): " ) ?> </p>
2005-11-27 11:56:53 +01:00
2008-01-11 08:18:19 +01:00
< code > updated & gt ; NOW () - INTERVAL '7 days' </ code >
2008-01-11 08:06:04 +01:00
2008-05-16 07:35:13 +02:00
< p >< ? php echo __ ( " Matches all articles with scores between 100 and 500: " ) ?> </p>
2008-04-30 13:52:35 +02:00
< code > score & gt ; 100 and score & lt ; 500 </ code >
2008-05-16 07:35:13 +02:00
< p >