Skip to Content Skip to Menu

🍾 Happy New Year! Great Savings on Professional and Developer Memberships! Get 25% off now with code NEWYEAR-2026!

CB Gallery 3.0: Search in albums from all users ?

1 hour 54 minutes ago - 1 hour 43 minutes ago #342932 by Toulouzing
I am looking for a simple and elegant solution to have a dynamic gallery based on the "search  by Media" toggle in CB gallery...

This toggle allow users to write keywords ( i.e not parsed hashtags) in description of their photos ( example #landscape #portrait....) . The search in the gallery works perfectly for this for each user.... I like it.

So, I am wondering if there is a simple way to have in addition a single gallery gathering in a dynamic way all photos from all albums from of all users. I tried to illustrate this. I don't know how it is possible ( specific gallery or autoaction ?). As media, we only upload photos reguiring albums and there is no privacy for albums ( all can be viewed by all users, only owner can upload in his gallery)

(Note: I do not will to use the smart search because the result rendering does not fit with the need to display photos and not links and i let the use of hashtag searches for other purposes if it is implemented in future CB Gallery plugin.)

 

 
Last edit: 1 hour 43 minutes ago by Toulouzing.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49986
  • Thanks: 8543
  • Karma: 1466
1 hour 14 minutes ago #342933 by krileon
It's possible to create a gallery in CB Gallery > Galleries that displays albums and media from all users, but there's no way to search by user.

To display media from all users the easiest approach is just make a copy of the "Profile Gallery" gallery. Next set the asset of the copy to "gallery.1" so it inherits most settings from the profile gallery. Finally under Filters add "profile.%" to Display > Include > Assets so it includes all profile gallery media. If you've other profile galleries (gallery fields) in use you may want to also add "1" to Display > Include > Galleries so it's restricted to that gallery. That Filters tab is entirely responsible for what displays.

Will review adding search by user somehow in a future release. Probably something like @username or @name. Basically allowing mentions in the search bar to search by user. I've no plans to implement this anytime soon though, sorry, but will make a feature ticket so I don't forget.

forge.joomlapolis.com/issues/9793

(Note: I do not will to use the smart search because the result rendering does not fit with the need to display photos and not links and i let the use of hashtag searches for other purposes if it is implemented in future CB Gallery plugin.)

Joomla smart search results are entirely customizable. Override the layout from your Joomla template and adjust the HTML to whatever you like.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum