The cMap and Market have two image locations. By default the logo is shown in the upper left of the entry card. This image location is the image
shortcode option. The following shortcode options affect the image
shortcode option:
image_width image_height image_fallback str_image=”No Logo Available”
When a logo image has been uploaded to the entry, by default, it will show here. If no logo has been uploaded then the fallback “No Logo Available” block will be shown.
The second image location is in the bio content tray. The bio content tray will only show when the has been content entered into the Biography field for the entry. The photo image will only show in bio content tray if a photo has been uploaded to the entry. This image location is the tray_image
shortcode option. The following shortcode options affect the tray_image
shortcode option:
tray_image_width tray_image_height tray_image_fallback str_tray_image=”No Photo Available”
The valid options for image
and tray_image
are:
logo
photo
The valid options for image_fallback
and tray_image_fallback
are:
block
none
The height and width options control the image
and tray_image
dimensions.
The two str_
options control the text that is shown when the _fallback
options are set to block
.
So, with all that said, here’s what the default shortcode for cMap and Market look would look like if you had to set the default options in the shortcode manually:
Examples:
– Remove Logo
– Display Photo only AND – Display “No Photo Available” if no image