News

    Table of Contents:


    News is CMS plugin to manage and show news on site page. It allow:

    • Show news items on page
    • Show news item topics
    • Show news item selected by ID on separate page containing news item metadata as page metadata
    • Expand / collapse news data content area
    • Delegate news content to site search index
    • Provide news RSS service

    Plugin data storage is located in folder /cms/data/plugins/news (may be changed) and contains files:

    • conf.xml - XML file containing available topic list and base URL for news item selected by item ID on separate page
    • id.xml - XML file containing news data; id - news id usually is language code (ex. eng.xml))
    • other XML files containing news data with different id

    Plugin delegates to site:

    • js include file: cms-plugin-news.js containing cms_plugin_news() jQuery plugin
    • css include file: cms-plugin-news.css
    • Smarty template plugin {cms_plugin_news}
    • Smarty template plugin {cms_plugin_news_rss}
    • php class cms\plugin\news\content which helps to provide news data content for local search index

    News items in several pages are filtered using page optional data key pairs:

    • 2014: news => year=2014 (filtering by year = 2014)
    • Actual: news => topic=act (filtering by assigned topic id = 'act'); breaking news always are actual
    • Archive: news => topic=arc (filtering by assigned topic id = 'arc')
    • All: no optional data defined

    jQuery plugin docs available at cms_plugin_news()

    Smarty template plugin docs available at {cms_plugin_news}

    Smarty template plugin for RSS docs available at {cms_plugin_news_rss}

    Vulnerability Scanner