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 3 replies, 2 voices, and was last updated 13 years ago by
Steven Zahm.
-
AuthorPosts
-
07/29/2013 at 1:30 pm #266039
Laurent_cv
GuestHello,
I will wish to display only the first phone number as well as the first address in the list, but all the information available in the detailed description.
How?
Thank you for your help.
07/29/2013 at 3:29 pm #266054Steven Zahm
Keymaster@ Laurent_cv
Sorry, no. The best that can be done is to limit the display of the address and phone by type. For example, work address and work phone, like so:
[connections address_types='work' phone_types="workphone" email_types='work']And then use one of the supplied templates for use in the single entry view. This can be enabled by checking the Single Entry view on the Connections : Settings admin page under the Display tab.
You can then choose you desired template under the Individual/Organization template types on the Connections : Templates admin page. Make sure to choose one of the supplied templates because those will be unaffected by the shortcode options.
Hope that helps.
07/29/2013 at 5:51 pm #266074Laurent_cv
GuestHello,
thank you for the reply, it works fine on the listing, but on the detail page there is only the information field “work.”
I changed the following code in “card-single.php”:
if ( $atts['show_addresses'] ) $entry->getAddressBlock( array( 'format' => $atts['addr_format'] , 'type' => $atts['address_types'] ) ); if ( $atts['show_phone_numbers'] ) $entry->getPhoneNumberBlock( array( 'format' => $atts['phone_format'] , 'type' => $atts['phone_types'] ) ); if ( $atts['show_email'] ) $entry->getEmailAddressBlock( array( 'format' => $atts['email_format'] , 'type' => $atts['email_types'] ) );with
if ( $atts['show_addresses'] ) $entry->getAddressBlock( array( 'format' => $atts['addr_format'] , 'type' => $atts[''] ) ); if ( $atts['show_phone_numbers'] ) $entry->getPhoneNumberBlock( array( 'format' => $atts[''] , 'type' => $atts['phone_types'] ) ); if ( $atts['show_email'] ) $entry->getEmailAddressBlock( array( 'format' => $atts['email_format'] , 'type' => $atts[''] ) );Everything works perfectly now.
Thank you.
07/29/2013 at 6:49 pm #266075Steven Zahm
Keymaster@ Laurent_cv
Yep, editing the PHP will work too. :)
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
