Plugin News


Plugin News
Extension to create news content in
your web site

Authors

Anyware Services

Most recent version

1.4.0

Tracking issues

https://issues.ametys.org/browse/NEWS

Download

Lastest version 

  1. Presentation
  2. Screenshots

Presentation

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.
It can be used for display, sorting, or used in a calendar for example

no

end date

date

The end date of the event. This date is NOT responsible for the news publication on website.
It can be used for display, sorting, or used in a calendar for example

no

illustration picture

image

Illustration of the news, uploaded from your hard drive
or picked up from resource explorer

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

Screenshots

User manual

Create a news

Go to "Add content' menu and select the content type "News"

How To add headline news on home page

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 :

  • Content types: select the news content type
  • Search context : select the "In current site" option
  • Language: select the "Current language" option
  • Max result : enter the max number of news to display. Defaults to 10
  • Tags: select the HEADLINE_NEWS tag
  • View : select the "abstract" view or other
  • RSS Feed: check the case if you want to add a RSS feed icon

How To list the news of a section

Use the service "Content digest" with the following parameters :

  • Content types: select the news content type
  • Search context : select the "In children pages" option
  • Language: select the "Current language" option
  • Max result : enter the max number of news to display. Defaults to 10
  • View : select the "abstract" view or other
  • RSS Feed: check the case if you want to add a RSS feed icon

Service parameters :

Sample on rendering :

Little calendar (since 1.1.0 version)

Use the service "Events Calendar" to display JavaScript calendar of events. The events are displayed to date ranges or individual dates.

Service's parameters

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.
Default value is 3, ie if today is november, the visitor can see the calendar from August to November.

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

Samples of rendering

Calendar's rendering is simply customizable by CSS.

Full-sized calendar (since 1.3.0 version)

Use the "Full-sized calendar" service to display the events in a full-sized calendar.

This service provides ?:

  • filter events of calendar by personalized categories (tags),
  • monthly and weekely view,
  • export of calendar to PDF format

Service's parameters

Parameters

Description

Mandatory

Title

The service title.
Leave empty if you do not want any title.

no

Tags

Only news tagged with the selected tags will be visible in the calendar.
This field can be empty to display all news

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.
A content is orphan if it is not attached to a page, or if the page is not published

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

Sample of rendering

Calendar's rendering is simply customizable by CSS.

Download and Installation

Download

Installation

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.

Compatibility

Plugin version

1.0.x

1.1.x

1.2.x

1.3.x1.4.x

Ametys 3.0.x

 

 

  

Ametys 3.1.x

 

 

  

Ametys 3.2.x

 

  
Ametys 3.3.x   

 
Ametys 3.4.x    

Back to top