/o//commerce-media/accounts/-1/images/18481330?download=true

journal-content-friendly-url-fix-hook
Icon
DXP App
18480679
When we use Asset publisher to list all the web contents but expect web content to be opened in a different page in a specific portlet, Liferay uses the friendly url of that web content to navigate to other page and show that in Asset publisher.

A problem exists if we use special characters in title of web content, it creates some problem. Problem is that, Liferay replaces most of the special characters while generating unique url for the web content but fails to recognize all. That leads to existence of special characters in title and Liferay fails to show that web content in specific portlet.

This code replaces the special characters from existing title and updates article. This hook must be present before we create a web content.
DEVELOPER
Ravi Kumar Gupta
DEVELOPER
14-11-24 上午12:00
Published date
处理模板时发生错误。
The string doesn't match the expected date/time/date-time format. The string to parse was: "14-11-24 上午12:00". The expected format was: "MM/dd/yy HH:mm".
The nested reason given follows:
Unparseable date: "14-11-24 上午12:00"

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${CPDefinition_displayDate.getData()?...  [in template "3192443#3192485#null" at line 4, column 9]
----
1<#setting date_format="MMMMM d, yyyy"> 
2 
3<#if (CPDefinition_displayDate.getData())??> 
4	${CPDefinition_displayDate.getData()?datetime("MM/dd/yy HH:mm")?date} 
5</#if> 
Published Date
14-11-24 上午12:00
SUPPORTED OFFERINGS
Self-Hosted, Self-Managed
Supported Versions
6.1
Resource Requirements
Edition
EE
PRICE
Free
help & support
Terms & Conditions
SHARE LINK
Copy & Share Link

HTML Example

A paragraph is a self-contained unit of a discourse in writing dealing with a particular point or idea. Paragraphs are usually an expected part of formal writing, used to organize longer prose.