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 6816761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:57:52+00:00 2026-05-26T20:57:52+00:00

We need to create hidden system subfolders in every IGFolder an normal user creates.

  • 0

We need to create hidden “system” subfolders in every IGFolder an normal user creates.
The image gallery portlet resides mainly on the private community layouts of all normal users. The portlets and their configuration is pregenerated so the normal users can’t change them (layout.user.[public|private].layouts.modifiable=false).

Why we want to do this
In those system folders we’ll store automatically generated size versions of the uploaded images. This is because we also import WebContent/JournalArticle representing image galleries which provide different sizes of the images themselves. In the end we want to display both the IGFolders and the JournalArticle content the same way without to much special code.

What i have tried already

  • I tried to do this via permissions (resource-actions/imgallery.xml =>
    owner-defaults) but on his own community pages the user is also
    CommunityAdmin which gives him the rights to do & see almost whatever
    he wants. (PermissionCheckerBagImpl.isCommunityAdminImpl)

  • I thought of creating the layouts that don’t belong to the user/his
    private Community, but testing this on a public page of another
    community that the users belongs to didn’t work. I can’t get the
    system to display the IGFolders of the current user at all, instead
    the folders of the community are displayed.

  • Using another user and group for the subfolders didn’t work either,
    if the groupId does not match the one of the parent folder the parent
    folder id is set to 0, so they are longer subfolders at all
    (IGFolderLocalServiceImpl.getParentFolderId).

What might work and i probably just don’t get right

  • changing the owner of the image gallery portlet/the layout

  • fiddling with the permission in a way i haven’t thought of

  • adding another layer of groups/communities

  • putting the system folders somewhere else (which of course leads
    to more code for maintaining the relation between them and their
    parent folder)

Of course i could use expandos to flag the system folders – which i have to do anyway – and hide them after retrieval in the view but then i also would have to fiddle with the folder count, which i would like not to, since i feel this is not the way to do things.

Any ideas are appreciated, please don’t feel shy to elaborate, I’m quite new to Liferay

  • 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-05-26T20:57:53+00:00Added an answer on May 26, 2026 at 8:57 pm

    You could create hook plugin and override in it (probably this file)

    /portal/portal-web/docroot/html/portlet/image_gallery/view_folders.jsp

    There you could add code to ignore your “system” folder if it exists. Perhaps all “system” folders could have same name (for example “_SYSTEM_FOLDER_”) that you can test against.

    Take note that this just hides folders, so if someone knows folderId and has permission to see/edit it they could craft URL to access it.

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

Sidebar

Related Questions

I need to create a hidden field on my page, store some value in
For a click tracking feature I need to create a hidden page that reads
I need to create snapshot of Grid with some hidden columns (by setting it's
I need create custom dialog and put JPanel into it. Is it possible?
i need create an email list sending to many emails. what is best solution
Need to create a custom DNS name server using C which will check against
I need to create a historical timeline starting from 1600's to the present day.
I need to create an XML schema that looks something like this: <xs:element name=wrapperElement>
I need to create a linked server to a DB2 database on a mainframe.
I need to create an ASP page (classic, not ASP.NET) which runs remote shell

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.