-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide photo box if there is no picture #54
Comments
Hello, you want do hide the full card of an entry if the entry has no photo? If you don't have any photo in your directory, the best is to disable the gallery page: $use_gallery = false; |
Hi, Yes we want to hide the card in the gallery page if the entry has no photo (we use local photo) |
There is no simple solution to do that, as it would require to first search for the photo before displaying the entry, and we do the other way: we display the entry, then the photo. If the photo were in the LDAP directory, then you would just have to edit the LDAP filter to dismiss people without pictures. But this method is not possible if you use local photo. |
Some entries won't have photo but have to be in directory so If we edit the LDAP filter to dismiss people without pictures we won't see them in gallery AND in directory right? |
Yes but you can just edit the filter in htdocs/gallery.php to only impact the gallery page. |
Ok I think we'll do that way, thanks for your help! |
Possibility to set a specific filter for gallery (#54)
Hello, I created a new parameter for next version to override LDAP filter for the gallery. |
Hi,
Is there a way to hide photo box on gallery page if there is no picture ?
Regards,
The text was updated successfully, but these errors were encountered: