Accueil Features Demos Download Installation User Manual Developer Manual Relation function Credits

blabla

inc/rss.php

Provides the code to create an RSS feed. The RSS is not activated by default. You must define a query that returns the list of pages you want to have in the RSS and invoke it in a custom swInternalCronHook() function.

Function

swRSS($query,$rssname)

The query uses the query function syntax. It can have multiple lines. The result must be an array of names. For each name, the wiki is looked up and title, timestamp and the content shortened with the resume function to 140 charactes is used to create the RSS feed.
The title of the RSS can be defined in the page System:sitename$rssname and the description as System:sitedescription$rssname. The file is saved in the root of the wiki as /feed/$rssname.rss.

File structure inc folder