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 12 years, 7 months ago by
Steven Zahm.
-
AuthorPosts
-
01/06/2014 at 11:32 am #276488
Timothy
ParticipantHi
I need some more detailed guidance please.
I would like my client to be able to upload an image (or logo doesn’t matter which) for each Connections Entry. I am using the Excerpt Plus template. I have tried every combination of the Image Ratio settings (Crop, maintain aspect ratio.
Fill, maintain aspect ratio.
None, scale to fit.). I have removed and tried a different image each time I changed the settings as I know it is cached. But no matter what settings I use the thumbnail image used on the Directory page and the individual page is cropped.I don’t mind it being reduced in size but it must be scaled to fit as these images are Company logos and need to remain complete wherever they appear.
I have searched the documentation and forum but don’t have an answer. Maybe I am doing something silly?
The shortcode I am using is [connections str_read_more='More Details' str_cell_phone='Mobile' color='#86A178' show_contact_name=TRUE show_addresses=TRUE show_phone_numbers=TRUE show_email=TRUE show_social_media=TRUE show_links=TRUE image="logo"]
Any steps I need to take or other tips greatly appreciated.
01/06/2014 at 2:03 pm #276495Steven Zahm
Keymaster@ Timothy
Because Excerpt Plus requires a specific image size so the layout does not break it is create on demand. With that said, you have to make this change by editing the template’s
card.phpfile.You need to change this:
$entry->getImage( array( 'image' => $atts['image'], 'height' => 120, 'width' => 100, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );To this:
$entry->getImage( array( 'image' => $atts['image'], 'height' => 120, 'width' => 100, 'zc' => 2, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ) ) );Notice I added the
zcoption and set the value to2. I think that is the setting which will yield the result you require. If not, valid options are0,1,2or3. Option1is the default and is what is being used.Hope that helps!
01/07/2014 at 3:33 am #276550Timothy
ParticipantThank you.
My code is slightly different in the card.php file:
$entry->getImage( array( 'image' => 'photo' , 'height' => 120 , 'width' => 100 , 'zc' => 2, 'fallback' => array( 'type' => 'block' , 'string' => 'No Photo Available' ) ) );But so far working perfectly, thank you.
01/07/2014 at 10:05 am #276558Steven Zahm
Keymaster@ Timothy
Great the hear!
The code is slightly different because I pulled the code from the latest version. If you’re not using the other options, I wouldn’t worry about updating.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
