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.
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.
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.
Tagged: image sizes, images, shortcodes
- This topic has 2 replies, 2 voices, and was last updated 10 years, 3 months ago by Chris.
02/11/2013 at 11:41 am #251202ChrisParticipant
I’m building myself a custom template and am wondering how I can force the template into a specific image size (thumbnail, medium, large) as defined in the plugin’s image settings.
I’ve gone through the other templates that come in the pro pack and it appears that users have to define their own image sizes using height and width shortcode attributes. I suppose as part of this, I’m wondering what the purpose is of setting image sizes if the user has to type in the dimensions anyway with a short code.
Any clarification would be helpful. Thanks!02/11/2013 at 12:08 pm #251203Steven ZahmKeymaster
Actually, it’s the other way around. When a user supplied a size via the shortcode, it overrides the user defined settings in the admin. The purpose is to allow the user to configure the template for multiple purposes. For example, many users use more than one template on their site and having the same image size forced upon each template doesn’t make sense so I built in the a method into the premium template to change this on demand.
Try these to force a size:
$entry->getImage( array( 'image' => 'photo', 'preset' = 'thumbnail' ) ); $entry->getImage( array( 'image' => 'photo', 'preset' = 'entry' ) ); $entry->getImage( array( 'image' => 'photo', 'preset' = 'profile' ) ); $entry->getImage( array( 'image' => 'logo' ) );
The preset option explained:
thumbnail = the small image settings
entry = the medium image settings
profile = the large image settings
The image size will be that of the settings applied to the image at the time of upload. The preset names don’t match the actual naming in the settings because I decided after writing the function that it made more sense to present the users as the choices small, medium and large.02/11/2013 at 12:19 pm #251204ChrisParticipant
Thanks Steven, I’ll take a look and check it out. I appreciate your response.
You cannot reply to this support topic. Please open your own support topic.