Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8914709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:47:35+00:00 2026-06-15T04:47:35+00:00

I have started developing portlets with Liferay and I would like to show one

  • 0

I have started developing portlets with Liferay and I would like to show one (or more) Web-content article(s) with a specified structure.

For example, suppose I’ve a structure “A” so how can I get the last web-content article which is created using this structure?

This article explains how to get articles with a tag but not with a structure.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:47:36+00:00Added an answer on June 15, 2026 at 4:47 am

    The Liferay API Docs (this is for 6.1, as I don’t know what version you’re using) are your friend as is the Liferay source code.

    In short you’ll want to use one of the following API methods:

    JournalArticleLocalServiceUtil.getStructureArticles(long groupId, String structureId);
    JournalArticleLocalServiceUtil.getStructureArticles(long groupId, String structureId, int start, int end, OrderByComparator obc) 
    

    These rely on knowing the ID of the structure from which your content was generated, if you don’t know what it is then you can use the following API method to get a list of all of them for your current Community:

    JournalStructureLocalServiceUtil.getStructures(long groupId) 
    

    You can also use similar methods to find Journal Articles by the JournalTemplate that they use:

    JournalTemplateLocalServiceUtil.getStructureTemplates(long groupId, String structureId); 
    
    JournalArticleLocalServiceUtil.getTemplateArticles(long groupId, String templateId);
    JournalArticleLocalServiceUtil.getTemplateArticles(long groupId, String templateId, int start, int end, OrderByComparator obc) 
    

    Comment back if you have any questions, or if this answers your question please hit the “Accept answer” button tick! Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started developing apps on iOS, I would just like to know
I would like to get started with developing NFC apps for android. I have
The last months I have tried to get started with web developing using Java.
I have started developing a full-web application by using the ASP .NET MVC 3
I've started developing a new web service in VS2005. There is only one method:
Its been quite some time since i have started developing web pages using JSF
My problem is somewhat strange. I have started developing a web page with Aptana
I'm developing an android game on 2.3 and have started testing on more devices
I have just started developing a full-web application by using the ASP .NET MVC
I have just recently started developing Windows Form Controls, and one of the controls

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.