cortex-editorial-view

Editorial content view for Cortex applications

Usage no npm install needed!

<script type="module">
  import cortexEditorialView from 'https://cdn.skypack.dev/cortex-editorial-view';
</script>

README

cortex-editorial-view

Simple view for Cortex apps to display editorial images from an XML feed.

Usage

{EditorialView} = require 'cortex-editorial-view'

view = new EditorialView 'http://example.com/feed.xml', opts
window.Cortex.view.register 'EditorialView'
view.run()

Configuration options

  • displayTime: View duration in milliseconds. Default is 7500 ms.
  • assetCacheTTL: Editorail image cache duration in milliseconds. Default is 7 days.
  • feedCacheTTL: XML feed cache duration in milliseconds. Default is 1 day.
  • feedCachePeriod: View will try to refresh the XML feed every feedCachePeriod milliseconds. Default is 30 mins.

Requirements