Versi: 1.0
Modul ini telah diubah dan merupakan versi perluasan dari modul Berita versi milik Ted Kulp. Secara sederhana, saya tambahkan field lainnya ke database, dan beberapa kode program untuk membuat field tersebut I simply added another field to the database, and some more code to make that field worl.... Saya juga membersihkan kode programnya, karena itu menjadi lebih mudah untuk dibaca, dari pada kode programmnya ini adalah kode program milik Ted
Versi: 1.1
Added the ability to set an automatic expiry date from a pulldown, moved the category selection, and on the main page you now filter the entries you want to see.
Version: 1.2
Added summary, no_anchor and length parameters. In summary mode links are made to the real articles, tags are stripped, and links are insreted to the news page and the specific news item.
Version: 1.3
Minor cosmetic changes
Version 1.5
Merged into the trunk News module
Version 1.6
Added pagination, and moved the add button to the top (calguy)
Version 2.0
Re-written to use smarty templates, and several other significant improvements
Version 2.0.1
Minor tweaks to the RSS output to allow it to work correctly on different browsers, and to support non alpha numeric characters in the description.
Version 2.0.2
- Add a "start" parameter to specify a start offset for news items
- The template tabs now have a "reset to default" button on them
- Start menu item is now required, but end date is optional when useexpirydate is on,
- Change the permissions model significantly, The "Modify News" permission is only for articles and categories. "Modify Templates" permission is required to edit the templates, and "Modify Site Preferences" is required to edit the options.
- Put the rss feed titile into the lang entries
Version 2.0.3
- Added the ability to track the original author of an article
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.
News is a module for displaying news events on your page, similar to a blog style, except with more features!. When the module is installed, a News admin page is added to administration menu that will allow you to select or add a news category. Once a news category is created or selected, a list of news items for that category will be displayed. From here, you can add, edit or delete news items for that category.
The user must belong to a group with the 'Modify News' permission in order to add, edit, or delete News entries.
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.
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'}