@ Jana
re: I wonder if the simplest approach, if Steven plans any programming work on this, would be for the cMap template to be modified to:-
* display the logo by default on the summary page, but if there is no logo, then display the photo on the summary page instead
You can do this already, although it is not covered in the docs because I rather users use the Customizer since it is point and click with a live preview.
There are two shortcode options image_fallback and tray_image_fallback. The image_fallback option will affect the image in the upper image and the tray_image_fallback will affect the image in the bio area. Add the options to the existing shortcode like so:
[connections image_fallback="type" tray_image_fallback="type"]
The valid options for type are:
noneblock:: Empty block with no image found text.photologo
Points to keep in mind:
- These options will affect to both the results list view and the single entry view, so, if you use the Customizer to display different images in both views, in one of the views the fallback image will be the default image set in the Customizer. Hope that makes sense.
- These options will override the “placeholder” checkbox option in the Customizer for the Image and the Bio Tray Image.
re: My guess is that everyone using cMap who has a mixture of organisations and individual listings is going to have this problem.
Yes, but, in my experience, this type of setup is rare. The only real solution I can see in this usage case would be to display the logo/photo based on entry type which is not something that I plan on integrating into a template because it’ll add a lot of complexity very few will use. If course the simple work around in this scenario is to load the image into the field so it display where you want regardless if the image is a logo or photo.
Or, just thought of this… you could rename the fields using the Say What? plugin to be more descriptive to the image placement rather the image type.
Hope that helps!
