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 11 replies, 2 voices, and was last updated 11 years, 12 months ago by
Steven Zahm.
-
AuthorPosts
-
07/30/2014 at 6:08 am #298507
IT Department
ParticipantHey Steve, I want to buy the Slim Plus Template, but I need to confirm one functionality. Is it possible to show the complete entry when it has a logo uploaded and only the head/title if not?
For example I have 1000 entries and 100 of them, are with a logo. In the list (all entries, searches, category filter, …) only the entries with logo should be expanded, the rest should be closed.
Is that possible?
07/30/2014 at 1:38 pm #298531Steven Zahm
Keymaster@ Roy
It is possible, but not out of the box, you would have to mod the template PHP code. In very generic pseudo code it would be; if logo do not add the hide CSS class.
07/31/2014 at 4:27 am #299139IT Department
ParticipantCan you provide a code snippet for the functions.php of my Child Theme to integrate that customization? Or do I have to make a feature request, so that an option like that will be included in the future version of Slim Plus? I think it would be really a great feature for all Templates, because you can have standard and premium entries and stuff like that.
08/04/2014 at 9:21 am #299495Steven Zahm
Keymaster@ Roy
Not sure I’d be adding this to a template. You’d have to customize the template. Right now, if no logo is added, no logo will be shown.
I’m guessing you will be showing the logo in place of the image, yes?
That can be done easily by settings a shortcode option for Slim Plus. Rather than altering the code, there is another option. If you create a category named
showand assign it to the entries that you want open by default, they will be.Will that work?
08/05/2014 at 4:49 am #299631IT Department
ParticipantThat sounds good. And what shortcode options will do the job?
08/05/2014 at 7:53 am #299633Steven Zahm
Keymaster@ Roy
To change the image from the photo to the logo you would use:
[connections image='logo']Thinking about this a little more, the default for Slim Plus will be to crop and resize proportionally to best fit the specified dimensions, maintaining the aspect ratio. This is generally fine for photos, not good for logos because they will get cut off.
Probably the best thing to do is edit the
card.phpfile. Change these lines:$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, 'fallback' => array( 'type' => $atts['image_fallback'], 'string' => $atts['str_image'] ), 'zc' => 2, ) );Now, the logos will be resized proportionally to fit entire image into the specified dimensions and add margins if required.
That should do the trick nicely. Hope that helps!
08/05/2014 at 9:43 am #299681IT Department
ParticipantI don’t understand… The name of the category has to be
show? I thought that was just an example and that opening certain entries by default is done via a shortcode option? Or is it just this special name of the category that’ll do the job?And instead of changing
card.php, can’t I just upload a 1×1 pixel *.jpg as image along with the logo to the entries with logos?-
This reply was modified 12 years ago by
IT Department.
08/05/2014 at 10:34 am #299719Steven Zahm
Keymaster@ Roy
No, see this FAQ. This feature is already built into the template. By adding the
Showcategory and adding it to an entry, that entry will display open by default, rather than closed.re: And instead of changing
card.php, can’t I just upload a 1×1 pixel *.jpg as image along with the logo to the entries with logos?
I don’t understand, do you or do you not want to show the logo?08/05/2014 at 12:00 pm #299757IT Department
ParticipantAh now I see. My, it’s that easy! That was all what I wanted.
And yes I want the logo to be shown in an entry, but that should be no problem? I would assign the “Show”-Category to all entries with logos. Or can’t Slim Plus output logos?
08/06/2014 at 11:31 am #299884Steven Zahm
Keymaster@ Roy
Yes, Slim Plus can show a logo, see this reply for the details.
-
This reply was modified 12 years ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
