← Alle Apps
Web content Create Date Hook logo

Web content Create Date Hook

von Mohd Danish

Data Modeling, Process & Business LogicLiferay Self-HostedLiferay PaaS

Beschreibung

Some time we are having requirement that we need to upload the web content with some back date. For example one of our news based portals we were required to have an option that, user can change the create date of web content at the time of uploading.
We are going to use the Service hook. We are going to hook
com.liferay.portlet.journal.service.JournalArticleLocalService
We will use the expando bridge to get the latest created date from the user.
Create 2 custom fields as shown in the snap shots. The field name could be createDate(Date) and changeCreateDate(Boolean).
Else you can change the name and update them in the portlet.properties file.
##Specify the name of field specified in the custom fields..
1. Field to check if the user want to change the create date of a journal article or not (Boolean type)
override.change.create.date.field.name = changeCreateDate
2. Field to be scanned for the create date as set by the user (Date type)
create.date.field.name = createDate
These 2 fields will decide whether to update the create date or not.

Quelle: Liferays offizieller Marketplace

Weitere in Data Modeling, Process & Business Logic

Activiti Workflow Engine

von EmDev Limited

This plugin allows users and admins to use Activiti BPMN workflow engine for publication process (for example instead of default Kaleo). It almost fully supports BPMN 2.0 specification and may fully r

Address Validator

von Rivet Logic Corporation

The Address validator plugin enables the validation of addresses entered by the user. It uses some third party services or APIs for that purpose. The initial implementation uses Google Geocoding API,

Adobe Connect

von E2 Software India Pvt. Ltd

About Adobe Connect : Adobe Connect gives you complete control over the look and functionality of your virtual rooms. Create experiences that incorporate branding and content. Position functional pods

AdvicedAssets Portlet

von Tune IT

Portlet for Liferay that allows to show list of tematically-related content near every post in blog. Content list can include other blog posts, journal content articles and document library resources.

Weitere von Mohd Danish

EventLandingPortlet

von Mohd Danish

Event Landing Portlet Generally we have a requirement that on a particular day the users must be redirected to a page after login. For that one solution is to create a hook and catch the post login ev

Login Monitor

von Mohd Danish

In most of the website, we are having requirment to track, who are the users those has logged in, into our website. There is no such functionality avaliable in liferay, using which you can monitor the