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.
Tagged: 8.5.30
- This topic has 11 replies, 2 voices, and was last updated 6 years, 1 month ago by
David CASTERA.
-
AuthorPosts
-
11/30/2016 at 7:51 am #401807
David CASTERA
ParticipantHello,
I had 2 personnal phones columns.
I would like to change the order of the phone numbers.
Il would like to see:
Work phone
Work shortcut
Cell phone
Cell shortcutIs it possible?
11/30/2016 at 8:38 am #401817Steven Zahm
Keymaster@ David
Edit the entry. When on the Connections : Edit Entry admin page, drag and drop the phone numbers in the order you wish to have them displayed. You can learn more from the field management documentation.
When adding a new entry, add the phone numbers in the order you wish to have them displayed.
Hope that helps!
11/30/2016 at 10:06 am #401822David CASTERA
ParticipantThank you.
But I just use CSV Import, and I would like the same order for all entries:
Work phone
Work shortcut
Cell phone
Cell shortcutHow can I do that?
11/30/2016 at 11:08 am #401825Steven Zahm
Keymaster@ David
The only way to achieve this then would be to develop a custom template override file.
In most templates you will find a line of code which will be similar to this:
$entry->getAddressBlock( array( 'format' => $atts['address_format'], 'type' => $atts['address_types'] ) );
Copy paste this line for each phone type you want to display in the order you which them to be displayed. For example the code should be similar to this:
$entry->getAddressBlock( array( 'format' => $atts['address_format'] , 'type' => 'workphone' ) ); $entry->getAddressBlock( array( 'format' => $atts['address_format'] , 'type' => 'cellphone' ) );
Hope this helps!
11/30/2016 at 3:44 pm #401870David CASTERA
ParticipantOK, I try to understand….
I have my cmap plugin installed automatically on /var/www/si/wp-content/plugins/connections-cmap
I have to create /var/www/si/wp-content/connections-templates/cmap
And I have to paste card.php on this new directory.
And I can modify this new card.php. That’s it?I have nothing to activate?
11/30/2016 at 3:54 pm #401871Steven Zahm
Keymaster@ David
Paths appear correct. You copy/paste the card.php file to the new folder and modify. There is nothing to activate as Connections will automagically find the file and load it instead of the file from the original folder. This works in much the same way theme’s load their files.
11/30/2016 at 4:55 pm #401872David CASTERA
ParticipantIt’s OK for me!
Thanks a lot!12/01/2016 at 5:02 am #401910David CASTERA
ParticipantSteven,
One bug: I have a work e-mail address on each entry
E-mail adresses does not appear in CMAP template. I don’t understand why.
I try to changeif ( $atts['show_email'] ) $entry->getEmailAddressBlock( array( 'format' => $atts['email_format'] , 'type' => $atts['email_types'] ) );
if ( $atts['show_email'] ) $entry->getEmailAddressBlock( array( 'format' => $atts['email_format'] , 'type' => 'work' ) );
But, no e-mail appear…
12/01/2016 at 7:30 am #401936David CASTERA
Participantecho “print_r: => ” . print_r($atts);
$atts[’email_types’] is empty:
[…]
[phone_types] => internal, homephone, internal_annuaire, cellphone, workphone, workfax
[email_types] =>
[date_types] =>
[…]How can I fix this?
12/01/2016 at 10:09 am #401947Steven Zahm
Keymaster@ David
re: $atts[’email_types’] is empty:
Yes, the default is empty. Empty will for the
type
option will return all types.re: One bug: I have a work e-mail address on each entry, no e-mail appear…
You have the Contact extension for Connections installed and activated, deactivate it. One of its primary features to to remove/suppress all email addresses so they can not be listed.
Hope this helps!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.