- The Structr Knowledge Graph
- About Structr
- Getting Started
- Installation and Setup
- Working with Structr
- Advanced Topics
Structr offers in-built support for web feeds. This article will provide detailed information on how to integrate feeds into an existing instance.
A web feed is reduced to certain components that can be represented within the database.
Name | Description
– | –
DataFeed | The built-in type DataFeed is used to specify the source of a web feed. Once created, Structr is able to pull FeedItem entries from that source.
FeedItem | Contains information about a specific entry from a web feed. Furthermore relations to the feed entries’ content and enclosures are provided in the form of FeedItemContent and FeedItemEnclosure.
FeedItemContent | Represents the information found within the
<content>-tag of a web feed item and relates to a FeedItem.
FeedItemEnclosure | Represents the information found within the
<enclosure>-tag of a web feed item and relates to a FeedItem.
- Stop the Structr instance using
sudo service structr-ui stop.
- Set up the CronService within structr.conf to run the
UpdateFeedTaskperiodically . See below for an example configuration.
- Restart the instance using
sudo service structr-ui start.
#### Specifying the feed update task for the CronService CronService.tasks = org.structr.web.cron.UpdateFeedTask #### Setting up the execution interval in enhanced cron time format <minute> <hour> <day of the month> <month of the year> <day of the week> <year> # In this example the web feed will be updated every 5 minutes org.structr.web.cron.UpdateFeedTask.cronExpression = 5 * * * * *
To automatically make newly created FeedItem entries visible to all users, add a custom
onCreate Callback-Function that sets the
visibleToAuthenticatedUsers attributes to