留言板
Get content of structure
Hello, I need to get the content of a structure :
This is the script Iam trying to get done :
I get the structure Id from this :
I got the structure but I can't find the method that allows me to get the content of the structure...
thank you
Liferay 6.2 ce ga2
This is the script Iam trying to get done :
String fieldValue = "";
String structureId="11709";
long groupId = assetEntry.getGroupId();
JournalStructure article = null;
try {
article = JournalStructureLocalServiceUtil.getStructure(groupId,structureId);
I get the structure Id from this :
I got the structure but I can't find the method that allows me to get the content of the structure...
thank you
Liferay 6.2 ce ga2
Salam Sukaina,
Structure does not have any content it self. But structure can have web contents associated with it.
So in your case, what is your requirement?
If you know the title of your content, you can get web content by title.
Regards,
Roshan Qureshi
Structure does not have any content it self. But structure can have web contents associated with it.
So in your case, what is your requirement?
If you know the title of your content, you can get web content by title.
Regards,
Roshan Qureshi
Salam , thanks for replying ,
I want to get the content of a select field from /asset_publisher/init.jsp.
I want to get the content of a select field from /asset_publisher/init.jsp.
Please provide details of your functional requirements. What you want to do as a functional level (not code level)
If you want to get webcontents for a particular structure id, you can use below code
JournalArticleLocalServiceUtil.getStructureArticles(groupId, structureId);
It will give you the list of JournalArticles and you can traverse and get specific article.
Regards,
Roshan Qureshi
If you want to get webcontents for a particular structure id, you can use below code
JournalArticleLocalServiceUtil.getStructureArticles(groupId, structureId);
It will give you the list of JournalArticles and you can traverse and get specific article.
Regards,
Roshan Qureshi
I dont to get articles I want to get the structure content ,
to be more cleat I have this structure :
and I need to make a filter based on this options of "Etablissement" in the asset publisher
thank you ..
to be more cleat I have this structure :
and I need to make a filter based on this options of "Etablissement" in the asset publisher
thank you ..