Feed Creation - Eonic/ProteanCMS GitHub Wiki
ProteanCMS has built-in capabilities to create various feeds, which are essential for content distribution.
-
Feeds Directory:
The various feeds can be found in:
/ewcommon/feeds/
-
XSLT Files:
The corresponding XSLT files for these feeds are located in:
/ewcommon/xsl/feeds
You can copy these files locally to override the default settings by placing them in:
/xsl/feeds
The filenames for the XSLT files are determined by specific parameters. Yogita will provide further details on this.
For example, the following URL structure can be used to generate feeds:
?contentType=product&xsl=slifeed
Content items are returned in the standard XML format used by ProteanCMS. The XSLT file then transforms this XML into the required format for the service consuming the feed, which can be:
- XML
- CSV
- JSON
The output must be correctly coded using the appropriate XSLT template.
We also have rewrite rules stored in:
/rewriteMaps.config
These rules provide simple paths to access these feeds easily.