Skip to content
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

Closed
bnesson opened this issue Nov 21, 2018 · 7 comments
Closed

Hide photo box if there is no picture #54

bnesson opened this issue Nov 21, 2018 · 7 comments
Milestone

Comments

@bnesson
Copy link

bnesson commented Nov 21, 2018

Hi,

Is there a way to hide photo box on gallery page if there is no picture ?

Regards,

@coudot
Copy link
Member

coudot commented Nov 22, 2018

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;

@bnesson
Copy link
Author

bnesson commented Nov 22, 2018

Hi,

Yes we want to hide the card in the gallery page if the entry has no photo (we use local photo)

@coudot
Copy link
Member

coudot commented Nov 22, 2018

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.

@bnesson
Copy link
Author

bnesson commented Nov 22, 2018

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?

@coudot
Copy link
Member

coudot commented Nov 22, 2018

Yes but you can just edit the filter in htdocs/gallery.php to only impact the gallery page.

@bnesson
Copy link
Author

bnesson commented Nov 22, 2018

Ok I think we'll do that way, thanks for your help!

coudot added a commit to Worteks/white-pages that referenced this issue Jul 16, 2019
coudot added a commit that referenced this issue Jul 16, 2019
Possibility to set a specific filter for gallery (#54)
@coudot coudot added this to the 0.3 milestone Jul 16, 2019
@coudot
Copy link
Member

coudot commented Jul 16, 2019

Hello,

I created a new parameter for next version to override LDAP filter for the gallery.

@coudot coudot closed this as completed Jul 16, 2019
coudot added a commit that referenced this issue Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants