Asset Publisher portlet show code instead of the dateAsset Publisher portlet show code instead of the datehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=738185392024-03-29T09:58:56Z2024-03-29T09:58:56ZRE: Asset Publisher portlet show code instead of the datedev icoworkhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=741383802016-05-12T13:30:08Z2016-05-12T13:30:08ZHello,<br /><br />i checked the assetPublisher-configuration. It is set to show only articles of a chosen type and to "show complete Content" meaning if you click on it the summary of the article it shows you the full article in the same portlet.<br /><br />As far as i could see there were no Application Display Template used.<br /><br />I dont really think the problem lies with the assetPublisher-portlet because the even in the prview of the article the error occurs.<br /><br />Thank you for your help.dev icowork2016-05-12T13:30:08ZRE: Asset Publisher portlet show code instead of the datedev icoworkhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=738280322016-05-04T11:18:29Z2016-05-04T11:18:29Z<blockquote><ul><li>Liferay Version?</li></ul></blockquote><br />My Liferay Version is: Community Edition 6.1.1 CE GA2<br /><br /><blockquote><ul><li>Are those articles with a structure/template?</li></ul></blockquote><br />Yes these articles have a custom structurem and type. <br /><br /><blockquote><ul><li>What's the AssetPublisher's configuration? Any Application Display Template used?</li></ul></blockquote><br />I have to doublecheck the config and template. But if velocity can not identify variables, date would not be shown in any type of this articles, sure?dev icowork2016-05-04T11:18:29ZRE: Asset Publisher portlet show code instead of the dateOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=738189512016-05-04T08:29:08Z2016-05-04T08:29:08Z<html><head></head><body><div class="quote-title">dev icowork:</div><blockquote>Asset Publisher shows this code instead of date entry when displaying article:<br><pre><code>$dateTool.format("dd.MM.yyyy", $dateTool.toDate( "dd MMM yyyy hh:mm:ss Z" , $reserved-article-display-date.getData().substring(4, $reserved-article-display-date.getData().length()))) </code></pre></blockquote><br><br><ul><li>Liferay Version?</li><li>Are those articles with a structure/template?</li><li>What's the AssetPublisher's configuration? Any Application Display Template used?</li></ul><br><br>Behavior like this typically happens when velocity does not identify a given variable as initialized. Instead of flagging "unknown identifier", it just prints the value verbatim.</body></html>Olaf Kock2016-05-04T08:29:08ZAsset Publisher portlet show code instead of the datedev icoworkhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=738185382016-05-04T08:11:26Z2016-05-04T08:11:26Z<html><head></head><body>Hello Everyone,<br><br>I have a problem with the asset publisher portlet. It lists correctly the article and shows the date in the list. When opening the article by click, the portlet displays a code instead of date in a few (not all!) articles. After comparing articles there are no differences. I cleared data base cache and garbage collector but no changes. Does anybody have an idea how to solve the problem?<br><br>Asset Publisher shows this code instead of date entry when displaying article:<br><pre><code>$dateTool.format("dd.MM.yyyy", $dateTool.toDate( "dd MMM yyyy