This topic is: resolved
- This topic has 12 replies, 2 voices, and was last updated 12 years, 9 months ago by .
You cannot reply to this support topic. Please open your own support topic.
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.
Sorry to drag up an old thread, but it’s exactly what I’m after.
I’m using ‘Market’ as my base template, and would like medium sized images on the pages that use ‘card.php’ and large images on pages that use ‘card-single.php’.
If I use $entry->getImage() on card.php it shows the medium size correctly, which I have set to be 225×150 pixels. Unfortunately, using the same code on card-single.php also shows the medium size, and if I try any of the suggestions above I just get a broken image. The large/original image size is set to 500×400 pixels.
Hope you can help me sort this out! :)
Thanks.
Just realised I’ve posted in the Excerpt Plus forum, my apologies.
@ trmash
You need to use this in the the card-single.php file:
$entry->getImage( array(
'image' => 'photo',
'height' => 400,
'width' => 500,
'fallback' => array(
'type' => 'block',
'string' => 'No Photo Available'
)
)
);
Hope that helps!
You cannot reply to this support topic. Please open your own support topic.
