Sent when an article is added.
Sent when an article is edited.
Sent when an article is deleted.
Sent when a category is added.
Sent when a category is edited.
Sent when a category is deleted.
Od verzie 2.9 a vyššej bol z modulu odstránený prednastavený formát dátumu a zobrazenie dátumu formatpostdate. Namiesto entry->formatpostdate môžete použíť entry->post_date, alebo entry->cms_date_format, ktorý nadefinovaný v globálnej konfigurácii.
Novinky sú modul pre zobrazovanie udalostí na Vašich stránkach, podobne ako blogové zápisy, iba s viacej možnosťami! Po inštalácii modulu je vložená daľšia položka do administračného menu a to Vám umožní vybrať alebo vložiť kategóriu noviniek. Po vytvorení alebo výbere kategórie je zobrazený zoznam noviniek pre túto kategóriu. Odtiaľto môžete pridávať, upravovať alebo mazať novinky konkrétnej kategórie.
Aby užívateľ môhol pridávať, upravovať alebo mazať novinky, musí mať oprávnenia skupiny 'Modify News'.
Nejednoduchšie použitie je vo využití tágu cms_module. Toto vloží modul do šablóny alebo stránky a zobrazí novinky ako si prajete. Samotný kód bude vyzerať podobne: {cms_module module="news" number="5" category="beer"}
{cms_module module="news" number="5" category="beer"}
The parameters supported by the news module, and support for numerous templates of each time mean that your options for displaying news articles are limitless.
The News module allows defining numerous custom fields (including files and images) that will allow you to attach pdf files or numerous images to your articles.
News supplies a hierarchical category mechanism for organizing your articles. A news article can only be in one place in the hierarchy.
News supports generating simple rss feeds from your news articles, so that your visitors can always be up to date with what is happening on your site.
Each news article can have an optional expiry date, after which it will not be shown on your web page. As well, articles can be marked as draft to remove them permanently from your web page.
The user must belong to a group with the 'Modify News' permission in order to add or edit News entries.
As well, In order to delete news entries, the user must belong to a group with the 'Delete News Articles' permission.
In order to edit the layout templates, the user must belong to a group with the 'Modify Templates' permission.
In order to edit the global news preferences, the user must belong to a group with the 'Modify Site Preferences' permission.
Additionally, to approve news for frontend display the user must belong to a group with the 'Approve News' permission.
The easiest way to use it is with the {news} wrapper tag (wraps the module in a tag, to simplify the syntax). This will insert the module into your template or page anywhere you wish, and display news items. The code would look something like: {news number='5'}
{news number='5'}
Since version 2.3 News supports multiple database templates, and no longer supports additional file templates. Users who used the old file template system should follow these steps (for each file template):
Following these steps should solve the problem of your news templates not being found and other similar smarty errors when you upgrade to a version of CMS that has News 2.3 or greater.