Versio: 1.0
Tämä moduuli on muokattu Ted Kulpin uutismoduulista. Lisätty uusi kenttä tietotakantaan ja hieman uutta koodia. Koodia on myös siivottu lukemisen helpottamiseksi, muuten kaikki on Tedin koodia.
Versio: 1.1
Lisätty ominaisuus asettaa automaattinen vanhentumisaika alasvetovalikosta. kategorioiden valinta siirretty. artikkelien filtteröinti
Versio: 1.2
Lisätty yhteenveto, no_anchor ja lenght parametrit. yhteenveto tilassa linkit osoittavat oikeisiin artikkeleihin, tagit poistetaan ja linkit lisätään uutissivulle
Versio: 1.3
Pieniä ulkonäöllisiä muutoksia
Versio: 1.5
Sulautettu trunk uutis moduuliin
Versio: 1.6
Lisätty sivutus ja add nappi siirretty ylös (calguy)
Versio: 2.0
Uudelleen kirjoitettu käyttämään smartyn pohjia ja muita tärkeitä parannuksia
Versio: 2.0.1
Pieniä korjauksia RSS syötteeseen. Tuki erikoismerkeille kuvaukseen
Versio: 2.0.2
- Lisätty \"aloitus\" parametri
- Pohjiin lisätty \"Palauta oletuspohja\"
- Aloitus kohta vaaditaan, mutta lopetus päivä on vapaaehtoinen jos vanhentuminen on päällä
- Oikeuksia muutettu, \"Muokkaa uutisia\" on vain artikkeleille ja kategorioille, \"Muokkaa pohjia\" on pohjien muokkaukseen, ja \"Muokkaa sivun asetuksia\" tarvitaan asetuksien muuttamiseen
Version 2.0.3
- Added the ability to track the original author of an article
Version 2.2
- Added browsecat parameter
Version 2.3
- Changed to use multiple database templates Old file templates will not work.
- Now allow for admin approval to change news state from draft to published.
- Pagination is now available in the default summary templates
- More.
Version 2.3.0.2
- Minor fixes to the help, changelog, to the number parameter, and to add a missing CreatePermission call.
- Fixes to the start parameter to work differently
Version 2.4
- Added a form on the frontend to allow users to submit news articles. This should be wrapped with customcontent to prevent spamming, etc.
- Fixes to allow 1.0.x compatibility.
- Updated the help.
Adds an extra field that can be re-used for anything (associating with a file, an extra image, etc.
Removes a small error I left in a template.
Moves the default templates into their own tab to remove confusion.
Use SelectLimit in the summary view instead of the LIMIT n,start or LIMIT n offset startelement
Bumped minimum version to 1.1
Adds user defined fields, including text areas, text input, checkboxes, and 'files' which allows you to associate a file with a particular news article.
Adds the ability to bulk change the category of selected news articles
Adds the ability to bulk delete selected news articles
Adds a new permission 'Delete News'. Users will need this permission to be able to delete news articles.
Fixes some frontend editing capabilities (extra fields aren't in there yet)
Adds a preference to allow hiding the summary text area for adding and editing articles.Remove the news content type (was deprecated in News 2.5.1)
Now Requires CMS 1.2 or later
Fixes some hardcoded lang strings in the articles tab
Adds a preference that allows specifying the default number of days before an article expires (if expiry is used)
Fixes the browsecat mode so that extra parameters added on the tag are carried down through the links
Adds multiple database templates to the browsecat action.
Now use cms_move_uploaded_file instead of move_uploaded_file.
Fixes a minor issue with the start parameter.
Now Require CMS 1.2.1 or later
Fixes an issue where I was assuming that the db prefix was cms_
Version 2.6.1
Fixes some warnings if no custom fields were defined.
Fixes some calls to GetModuleInstance().
Version 2.6.2
Decode entities for the template name when editing a template
Fix an issue with warnings if no custom fields are defined
Version 2.7
Fixes to news fesubmit and html entities
Adds an optional dropdown category box for fesubmit
Adds a preference indicating to disable the wysiwyg for the summary view
Adds a preference to determine which page to redirect to after fesubmit
Fixes to author id and author management wrt frontend submitted articles
Adds a preference to allow defining a landing page for links generated in the rss feed
Updates the pretty urls in the rss feed
A slight tweak to the rssfeed.tpl to use the feed title.
Adds custom field support to the frontend submit form
Version 2.8
Now require CMS 1.3-beta1 at least
Now use cms_html_entity_decode to ensure php4 compatibility
Support the extra field in the fesubmit form
Add fieldsbyname values to detail and summary reports
Fix minor issue with missing table prefix when deleting a category
Fix browsecat if there are one or more child categories with the same name
Cleanup and some minor bug fixes
Version 2.8.1
Fixes a minor problem with custom fields.
Fixes a minor problem with sorting by news_extra.
Version 2.8.2
Fixes a minor problem with registered routes
Lähetetään kun artikkeli on lisätty.
Lähetetään kun artikkelia on muokattu.
Lähetetään kun artikkeli on poistettu.
Lähetetään kun kategoria on lisätty.
Lähetetään kun kategoriaa on muokattu.
Lähetetään kun kategoria on poistettu.
Uutismoduuli näyttää uutisia sivuilla blogityylisesti enemmillä ominaisuuksilla varustettuna. Kun moduuli asennetaan, "Uutisten hallinta" -sivu lisätään hallinta valikkoon, tästä valikosta pääset muokkaamaan uutiskategorioita, kun uutiskategoria on luotu tai valittu näytetään lista artikkeleista. Tästä listasta pääset lisäämään, poistamaan ja muokkaamaan uutisartikkeleita.
Käyttäjän tulee kuulua ryhmään jolla on "Muokkaa uutisia" -oikeus päästäkseen muokkaamaan, poistamaan ja lisäämään uutisartikkeleita ja kategorioita.
Ulkoasupohjia muokatakseen käyttäjän on kuuluttava ryhmään, jolla on "Muokkaa pohjia" -oikeus.
Yleisiä uutisten asetuksia muokatakseen käyttäjän on kuuluttava ryhmään, jolla on "Muokkaa sivuston asetuksia" -oikeus.
Helpointa on käyttää {news}-kääretagia (käärii moduulin tagiin, mikä yksinkertaistaa syntaksia). Tämä lisää moduulin sivupohjaan tai sivulle sinne, minne haluat ja näyttää uutisartikkelit. Koodi voi näyttää esimerkiksi tältä: {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):