フォーラム

ホーム » Liferay Portal » English » x. Miscellaneous

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Rakesh Kusangi
Using velocity code we are unable to retrieve individual field of a structu
2013/01/10 4:16
答え

Rakesh Kusangi

ランク: New Member

投稿: 2

参加年月日: 2013/01/10

最近の投稿

Can anyone help me with retrieving individual field or attribute of a structure using velocity code?
Using the below mentioned snippet, I am able to pull the article content and its individual field.

<% JournalArticle journalArticle = null;
try {
journalArticle = JournalArticleLocalServiceUtil.getArticle(themeDisplay.getScopeGroupId(), "articlename");
} catch (com.liferay.portlet.journal.NoSuchArticleException e) {
// ignore
}
if (Validator.isNotNull(journalArticle)) {
String content = JournalArticleLocalServiceUtil.getArticleContent(
journalArticle,null, null, themeDisplay.getLanguageId(), themeDisplay);
if (Validator.isNotNull(content)) {
%>
I am looking out something similar through velocity.

Thanks in advance!
Rakesh Kusangi
RE: Using velocity code we are unable to retrieve individual field of a str
2013/01/11 1:15
答え

Rakesh Kusangi

ランク: New Member

投稿: 2

参加年月日: 2013/01/10

最近の投稿

any help appreciated