Project

General

Profile

Actions

Feature proposal #6655

closed

Implement hiding of empty albums

Added by krileon about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Target version:
-
Start date:
30 May 2017
Due date:
% Done:

100%

Estimated time:

Description

If the viewing user has no permission to manage the album (edit, delete, upload, etc..) and it has no media then it should be hidden.

https://www.joomlapolis.com/forum/153-professional-member-support/236738-proposal-for-selecting-a-type-when-creating-an-album#294411

Actions #1

Updated by krileon about 8 years ago

  • % Done changed from 0 to 20
Actions #2

Updated by krileon about 8 years ago

  • Status changed from Assigned to Rejected
  • Target version deleted (2.1.0)
  • % Done changed from 20 to 100

There's no efficient way of doing this. Currently the item count is a simple and fast subquery. To remove empty rows the tables must be joined. Joining the tables will results in a significant performance hit. For the usecase in the attached forum topic they realistically should be using different gallery assets. So for example if they want a gallery with photos only they can use profile.[user_id].photos and set it to only allow photos. If you want all these sub galleries displayed in a single gallery you'd use profile.[user_id]% wildcard usage.

Actions

Also available in: Atom PDF