This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#if entries?has_content> | |
<div class="container"> | |
<#list entries as entry> | |
<#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> | |
<div class="box"> | |
<h2> | |
<#assign title = docXml.selectSingleNode("/root/dynamic-element[@name='titulo']/dynamic-content").getText() /> | |
${title} </h2> | |
<p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<#if entries?has_content> | |
<#list entries as curEntry> | |
<#assign article = curEntry.getAssetRenderer().getArticle() /> | |
<@liferay_journal["journal-article"] | |
articleId=article.getArticleId() | |
groupId=article.getGroupId() | |
ddmTemplateKey="your-ddm-template-key" | |
/> | |
</#list> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#if entries?has_content> | |
<div class="container"> | |
<#list entries as entry> | |
<#assign assetRenderer = entry.getAssetRenderer() /> | |
<#assign DDMFormFieldValuesMap = assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValuesMap() /> | |
<#assign DDMFormFieldsReferencesMap = assetRenderer.article.DDMStructure.DDMForm.getDDMFormFieldsReferencesMap(true) /> | |
<div class="box"> | |
<h2> | |
<#assign titleField = DDMFormFieldsReferencesMap['titulo'].name /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.container { | |
display: flex; | |
flex-direction: column; | |
border-radius: 15px; | |
padding: 25px; | |
align-items: flex-start; | |
} | |
.content-text { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"availableLanguageIds": [ | |
"pt_BR" | |
], | |
"contentType": "journal", | |
"dataDefinitionFields": [ | |
{ | |
"customProperties": { | |
"labelAtStructureLevel": true, | |
"confirmationErrorMessage": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.liferay.journal.service.JournalArticleLocalServiceUtil | |
import com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil | |
import com.liferay.journal.model.JournalArticle | |
import com.liferay.portal.kernel.util.LocaleUtil | |
def fieldName = "field name" | |
def ja = JournalArticleLocalServiceUtil.fetchJournalArticle(id); | |
def entry = AssetEntryLocalServiceUtil.fetchEntry(JournalArticle.class.getName(), ja.getResourcePrimKey()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.liferay.document.library.kernel.service.DLAppLocalServiceUtil; | |
import com.liferay.portal.kernel.repository.model.FileEntry; | |
import com.liferay.document.library.util.DLURLHelperUtil; | |
import com.liferay.portal.kernel.theme.ThemeDisplay; | |
import com.liferay.portal.kernel.exception.PortalException; | |
public static String getDLEntryFileURL(long fileEntryId, ThemeDisplay themeDisplay) | |
throws PortalException { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Type=Application | |
Name=Liferay IDE | |
Comment=Liferay Developer Studio | |
Icon=/path/to/icon.xpm | |
Exec=/path/to/DeveloperStudio | |
Terminal=false | |
Categories=Development;IDE;Java; | |
StartupWMClass=Liferay IDE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<liferay-journal:journal-article | |
articleId="${article.articleId}" | |
groupId="${themeDisplay.scopeGroupId}" | |
ddmTemplateKey="${templateKey}" | |
/> |
NewerOlder