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 8 replies, 2 voices, and was last updated 4 years, 6 months ago by
John Boase.
-
AuthorPosts
-
03/15/2019 at 8:24 am #487079
John Boase
ParticipantHi,
I have purchased the pro pack and have setup a site using cMap but the client now wants to show the excerpt in the listing. I have shown them the Excerpt Plus theme but they want to keep the cMap theme and have the excerpt shown in there above the ‘Show Bio’ link.
I tried to follow this link https://connections-pro.com/support/topic/excerpt-plus-v-cmap/ but my card.php file does not seem to correspond with the one shown in that post.
Can this be done please?
03/15/2019 at 10:09 am #487085Steven Zahm
Keymaster@ John
The code would not correspond since the other user was customizing the cMap template.
The folder and file path is still applicable though.
Using
$entry->excerpt();
in thecard.php
file is sufficient to display the excerpt (a helper function that has been added since that discussion).After you get it working, I highly suggest moving the
card.php
file one of the paths outlined in the template override doc.Hope this helps!
03/16/2019 at 9:36 am #487155John Boase
ParticipantThanks for the quick response Steven,
I’ll give that a go over the weekend.
Regards
John
03/16/2019 at 9:53 am #487156John Boase
ParticipantHi again Steven,
I want the excerpt to be visible on the listing at all times underneath ‘Categories’ and above ‘Show Bio’ so I placed it in the card.php file as shown in the part of the code below but nothing is showing? Do I have it in the right place?
$entry->excerpt(); <?php if ( $atts['show_bio'] && 0 < strlen( $bio ) ) { $entry->getBioBlock( array( 'before' => '<h4>' . esc_html__( 'Biographical Info', 'connections' ) . '</h4>' . PHP_EOL, 'after' => '<div class="cn-clear"></div>', ) ); } if ( $atts['show_notes'] && 0 < strlen( $notes ) ) { $entry->getNotesBlock( array( 'before' => '<h4>' . esc_html__( 'Notes', 'connections' ) . '</h4>' . PHP_EOL, 'after' => '<div class="cn-clear"></div>', ) ); } ?>
Regards
John
03/18/2019 at 10:21 am #487293Steven Zahm
Keymaster@ John
The code does not look like it is from the cMap template. Which file and folder folder path are you editing?
You want to added
$entry->excerpt();
to line140
in thecard.php
file in this path:../wp-content/plugin/connections-cmap/
You’ll need the open and close PHP tags too, so, it should be:
<?php $entry->excerpt(); ?>
Line
141
is this:<div class="cn-tray-links">
That should place the excerpt right after the categories.
03/18/2019 at 10:21 am #487294Steven Zahm
Keymaster@ John
If you have a moment, I would truly appreciate a review as they really do make a difference.
https://wordpress.org/support/plugin/connections/reviews/
Thanks in advance for your time!
03/18/2019 at 12:19 pm #487306John Boase
ParticipantThanks Steven,
I was editing the wrong card.php file…doh!
That’s worked a treat.
I can’t leave another review as I left one 5 months ago but I did manage to edit that and give some extra praise in there for you…and rightly so!
One last question and I think I’m done then. Can I have the ‘Show Bio’ link go to the full listing like the link does when you click on the name instead of it opening a dropdown box?
Thanks in advance
John
03/18/2019 at 1:49 pm #487313Steven Zahm
Keymaster@ John
RE: Can I have the ‘Show Bio’ link go to the full listing like the link does when you click on the name instead of it opening a dropdown box?
Yes, you would use
$entry->permalink()
like so:<a href='<?php $entry->permalink(); ?>'>Link Text</a>
Hope this helps!
Thanks again for the review :)
03/18/2019 at 3:42 pm #487338John Boase
ParticipantThanks again Steven,
Worked like a charm.
Excellent plugin and support.
Regards
John
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.