Mar 8, 2018 2:47:48 PM seb leridon avatar   168

Using Blog Plugin

The Blog plugin (formerly HtmlDocs) is a plugin for adding portlets of html content in the pages of a Lutece site. It also allows to organize these html contents in order to display them in list on the wanted page.

Inclusion of the plugin

The sources of the current version of the Blog plugin are available at the following address:

https://github.com/lutece-platform/lutece-cms-plugin-blog

The plugin can be declared as a dependency in the pom.xml of the site thanks to the following code:

<dependency>
<groupId>fr.paris.lutece.plugins</groupId>
<artifactId>plugin-blog</artifactId>
<version>3.1.1-SNAPSHOT</version>
<type>lutece-plugin</type>
</dependency>

Using

After activating the plugin in the plugins management page, we can go to the administration of the site. We can then add a portlet thanks to " add a portlet " and choose PortletBlog.

Add a portlet

You arrive on the page to create a portlet. Name your portlet, then it is possible to "Create a new Blog" or "Use an existing Blog" In the first case, you will need to edit the contents of this portlet and optionally leave a comment.

Create

In the second, you only need to select a portlet from the list.

Use

Once done, you can create a portlet list by clicking on "Portlet Blog List" Give your list a name and drag the items on the right into the black box and place them in the order you want.

List

To delete an item just click on the little cross at the top right of the item.