Plugin News | |
Authors | Anyware Services |
Most recent version | 1.4.0 |
Tracking issues | |
Download | Lastest version |
This extension offers the content types News
A news content is closed to the article content, it composed by the following fields
Field | Type | Description | Mandatory |
title | text | The title of the news | yes |
subtitle | text | The subtitle of the news | no |
start date | date | The start date of the event. This date is NOT responsible for the news publication on website. | no |
end date | date | The end date of the event. This date is NOT responsible for the news publication on website. | no |
illustration picture | image | Illustration of the news, uploaded from your hard drive | no |
illustration text | text | Alternative text for the illustration | no |
abstract | multiline text | The news abstract to be used on abstract view | no |
content | rich text | The news full content | yes |
contact name | text | The contact name | no |
contact email | text | The contact email | no |
dublin core data | text | Dublin Core metadata | no |
Since version 1.1, this plugin bring a new service Calendar to display News in a calendar view.
In version 1.1, dublin core metadata is replacing former manual seo metadata
seo data (subject, description, keywords) | text | SEO metadata | no |
See the migration guide for migrating your existing data
Go to "Add content' menu and select the content type "News"
Create a content tag HEADLINE_NEWS for example. Such a tag can be created by the integrator in your skin or created by your webmaster in the applicaion.
Tag the news you want on home page with this tag.
On your home page, use the service "Content digest" with the following parameters :
Use the service "Content digest" with the following parameters :
Use the service "Events Calendar" to display JavaScript calendar of events. The events are displayed to date ranges or individual dates.
Parameters | Description | Mandatory |
Title | An optionnal title for the calendar that will be written before the calendar | no |
Past months to display | The number of month before today (today is the day when the page is generated) that can be searched by the visitor. | yes |
Future months to display | Idem, but in the future. Default is 3. | yes |
Tags | You may optionnaly select tags, only news with this tag will be visible. | no |
News on the same page | If you click this option, events of the calendar will be display just under the calendar. If not, events will be displayed on a separated page. To see an event click on a day. | yes |
Link to a page | You may optionnaly select a page. A link to this page will be set under the calendar. Use this to link the calendar to the news page of your website. | no |
Link label | By default the link title is the title of the page, but you can change this by entering a value here, such as "See all news" | no |
Display | Choose the calendar appearence. Only one is available by default. | yes |
Calendar's rendering is simply customizable by CSS.
Use the "Full-sized calendar" service to display the events in a full-sized calendar.
This service provides ?:
Parameters | Description | Mandatory |
Title | The service title. | no |
Tags | Only news tagged with the selected tags will be visible in the calendar. | no |
Event categories | This parameter is used to filter the events calendar by event category. Only the news tagged with tags of the selected categories will be displayed in the calendar. | no |
Hide orphan contents | Check this box if you want to mask the content orphans. | no |
Default time range | Select the default view on calendar first access: week or month | yes |
Link to a page | You may optionnaly select a page. A link to this page will be set under the calendar. Use this to link the calendar to the news page of your website. | no |
Link label | By default the link title is the title of the page, but you can change this by entering a value here, such as "See all news" | no |
Display | Choose the calendar appearence. Only one is available by default | yes |
Calendar's rendering is simply customizable by CSS.
Simply add the plugin JAR in the WEB-INF/lib directory of your Ametys application and restart your servlet engine.
The plugin does not need specific parameterization to work - even if, of course, you can override the render of a news.