Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ dominic
The issue is that the
labelattribute doesn’t support HTML tags even though it worked on prior versions. It is just now properly escaped whereas it was not before. If you want to make the label bold with space after it, you should use CSS. You can use the.cn_category_labelCSS selector.The same for the
separator.If you want a list, try this instead:
$entry->getCategoryBlock( array( 'label' => 'Skills:', 'type' => 'list', ) );That should get you back on track. Hope that helps, let me know.
Steven Zahm
Keymaster@ Lara
Did you add the shortcode to the page? See step 4 of the quick install guide.
Hope that helps, let me know.
Steven Zahm
KeymasterSteven Zahm
Keymaster@ Eugene
This is possible but you will have to edit the templates PHP file in order to do this.
Open the
card.phpfile found here:
../wp-content/plugins/connections-gridder/Look for this chunk of code:
if ( $atts['excerpt_length'] ) { echo cnString::excerpt( apply_filters( 'cn_output_bio', $entry->getBio() ), array( 'length' => $atts['excerpt_length'], 'more' => $atts['excerpt_more'] ) ); } else { echo apply_filters( 'cn_output_bio', $entry->getBio() ); }Change it to this:
if ( $atts['excerpt_length'] ) { echo cnString::excerpt( apply_filters( 'cn_output_notes', $entry->getNotes() ), array( 'length' => $atts['excerpt_length'], 'more' => $atts['excerpt_more'] ) ); } else { echo apply_filters( 'cn_output_notes', $entry->getNotes() ); }Save the changes. I highly recommend following the advice in the custom template override files tutorial on where to put this altered file so your changes are not lost during an update.
Hope that helps!
Steven Zahm
Keymaster@ Harold
I can add that to my feature request list. I guess using the featured image thumbnail set by the theme would be best, right?
Steven Zahm
Keymaster@ Harold
It seems the Connections Link metadata for those two users were somehow “corrupted” (for a lack of a better term). I’ve manually corrected this and now things seems to be working fine.
Hope that helps! Apologies for the trouble!
Steven Zahm
Keymaster@ Brian
great to hear!
Steven Zahm
Keymaster@ William
Within the copied code from the original
getFamilyMemberBlock()function you’ll find this line;$relation = new cnOutput();. Now, within your custom function you be able to use like this:if ( $atts['show_phonumbers'] ) $html = $html . $relation->getPhoneNumberBlock( array( 'format' => $atts['phone_format'] , 'type' => $atts['phone_types'] ) );You would add this to your custom family function, not in the template. Also, take note that it is
$relation->getPhoneNumberBlock()and not$entry->getPhoneNumberBlock().Hope that helps!
ps.
re: I added my function “getFamilyMemberDetailBlock” to class.entry-output.php, as instructed above.
No, you should not edit the
class.entry-output.phpfile. Any changes you make there will be lost during an update. Put your custom function elsewhere. For example in a code snippet.Steven Zahm
Keymaster@ Pip
Upload the PDF/s to your Media Library. You can then add links to the PDF in bio or notes fields.
Hope that helps, let me know.
Steven Zahm
Keymaster@ William
re: Is there a way to remove or disable them?
Sure, use CSS to hide it. I believe it is the border attribute.
re: Why are they displayed this way?
If you are seeing them, it is likely the theme or another plugin is adding the border because the default styling in Connections is for no border.
Hope that helps!
-
AuthorPosts
