Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 3 replies, 2 voices, and was last updated 10 years, 3 months ago by
Steven Zahm.
-
AuthorPosts
-
06/13/2013 at 2:48 pm #262639
Marcus
GuestHello,
I’m confused about the shortcode for the photos.
What is the shortcode(s)?
– Remove Logo
– Display Photo only
– Display “No Photos Available” if no imagesI’m using cMap.
Thanks for your help
06/13/2013 at 4:14 pm #262642Steven Zahm
Keymaster@ Marcus
cMap has 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 theimage
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 thetray_image
shortcode option:`tray_image_width
tray_image_height
tray_image_fallback
str_tray_image=”No Photo Available”`The valid options for
image
andtray_image
are:`logo
photo`The valid options for
image_fallback
andtray_image_fallback
are:`block
none`The height and width options control the
image
andtray_image
dimensions.The two
str_
options control the text that is shown when the_fallback
options are set toblock
.So, with all that said, here’s what the default shortcode for cMap looks would look like if you had to set the options manually:
[connections image=logo image_fallback=block str_image="No Logo Available" tray_image=photo tray_image_fallback=none]
Now, to answer your questions:
– Remove Logo
[connections image=none image_fallback=none]
– Display Photo only AND – Display “No Photo Available” if no image
[connections image=photo image_fallback=block str_image="No Photo Available"]
Does that help?
-
This reply was modified 10 years, 3 months ago by
Steven Zahm.
-
This reply was modified 10 years, 3 months ago by
Steven Zahm.
06/14/2013 at 9:42 am #262728Marcus
GuestThanks for your detail information. The code that you provided get cut off, if you please re-format it? I think it is very helpful if you post on FAQ section, so people could understand the logic.
Thanks again!
06/14/2013 at 11:31 am #262742Steven Zahm
Keymaster@ Marcus
Triple clicking the line will select the line, and you can copy it that way, however, I for it cutoff lines to show a scrollbar.
Yep, I plan on adding this to the FAQ/s today.
-
This reply was modified 10 years, 3 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.