Forum Replies Created
-
AuthorPosts
-
Steven Zahm
Keymaster@ Ze’ev Ionis
I have added this to my feature request list. The only way I can see this being possible is as a second CSV import because all individuals would need to exist first and the second CSV file would have to contain the entry ID/s of the individual family members so they could properly be created. Honestly not sure which would actually be faster manually creating the families after import of the individuals or creating a CSV file with the required entry ID/s so they can be imported. Either would be quite a bit of work.
Steven Zahm
Keymaster@ Anna
Can you attach a screenshot showing where is is not being translated? I found one instance where it was not correctly setup for translation. I want to make sure that I correct any other areas I may have missed before releasing a bug fix.
Steven Zahm
Keymaster@ James
re: How can I display a group of checkboxes together? For example, we have 9 different certifications that a person may have.
You would need to use a checklist field These are only marginally more difficult to work with compared to the text field and checkbox field types. Building off the previous samples here’s how to add a checklist:
$atts = array( 'title' => 'Metabox Name', // Change this to a name which applies to your project. 'id' => 'custom_one', // Change this so it is unique to you project. 'context' => 'normal', 'priority' => 'core', 'fields' => array( array( 'name' => 'Field Name One', // Change this field name to something which applies to you project. 'show_label' => TRUE, // Whether or not to display the 'name'. Changing it to false will suppress the name. 'id' => 'field_id_1', // Change this so it is unique to you project. Each field id MUST be unique. 'type' => 'text', // This is the field type being added. 'size' => 'regular', // This can be changed to one of the following: 'small', 'regular', 'large' ), array( 'name' => 'Field Name Two', // Change this field name to something which applies to you project. 'show_label' => TRUE, // Whether or not to display the 'name'. Changing it to false will suppress the name. 'id' => 'field_id_2', // Change this so it is unique to you project. Each field id MUST be unique. 'type' => 'text', // This is the field type being added. 'size' => 'regular', // This can be changed to one of the following: 'small', 'regular', 'large' ), array( 'name' => 'Field Name Three', // Change this field name to something which applies to you project. 'show_label' => TRUE, // Whether or not to display the 'name'. Changing it to false will suppress the name. 'desc' => 'Checkbox Description', 'id' => 'field_id_3', // Change this so it is unique to you project. Each field id MUST be unique. 'type' => 'checkbox', // This is the field type being added. ), array( 'name' => 'Field Name Four', // Change this field name to something which applies to you project. 'show_label' => TRUE, // Whether or not to display the 'name'. Changing it to false will suppress the name. 'desc' => 'Checkbox Description', 'id' => 'field_id_4', // Change this so it is unique to you project. Each field id MUST be unique. 'type' => 'checkbox', // This is the field type being added. ), array( 'name' => 'Field Name Five', // Change this field name to something which applies to you project. 'show_label' => TRUE, // Whether or not to display the 'name'. Changing it to false will suppress the name. 'desc' => 'Checkbox Description', 'id' => 'field_id_5', // Change this so it is unique to you project. Each field id MUST be unique. 'type' => 'checkbox', // This is the field type being added. ), array( 'name' => 'Field Name Six', // Change this field name to something which applies to you project. 'show_label' => TRUE, // Whether or not to display the 'name'. Changing it to false will suppress the name. 'id' => 'certifications', 'type' => 'checkboxgroup', 'options' => array( 'RPR (Registered Prefessional Reporter)' => 'RPR (Registered Prefessional Reporter)', 'RMR (Registered Merit Reporter)' => 'RMR (Registered Merit Reporter)', 'RDR (Registered Diplomat Reporter)' => 'RDR (Registered Diplomat Reporter)', 'CRR (Certified Realtime Reporter)' => 'CRR (Certified Realtime Reporter)', 'CSR (Certified Shorthand Reporter)' => 'CSR (Certified Shorthand Reporter)', 'CLVS (Certified Legal Video Specialist)' => 'CLVS (Certified Legal Video Specialist)', 'CMRS (Certified Manager of Reporting Services)' => 'CMRS (Certified Manager of Reporting Services)', 'CRI (Court Reporting Instructor)' => 'CRI (Court Reporting Instructor)', 'CPE (Certified Program Evaluator)' => 'CPE (Certified Program Evaluator)', ), 'default' => '', ), ), );Displaying this is where is gets “tricky” because it is stored as an array so you have to loop thru the saved values to display them like so:
$certifications = $entry->getMeta( array( 'key' => 'certifications', // This should match exactly the field id used when registering the custom field. 'single' => TRUE // Do not change this. ) ); if ( ! empty( $certifications ) ) { echo '<ul class="cn-certifications">'; foreach ( $certifications as $certification ) { printf( '<li class="cn-certification cn-%1$s">%2$s</li>', esc_attr( $certification ), esc_html( $certification ) ); } echo '</ul>'; }This is not tested, but should work. Hope that helps!
Steven Zahm
Keymaster@ James
re: Is there a way to add a link to the ‘Edit my entry’ within other WP pages? Or even add specific fields from the the Directory? Like show the current users Name or Profile image?
Sorry, no. Do you have the Form extension? If you do, here’s a snippet that add a shortcode which will output the edit link:
add_shortcode( 'connections_edit_link', 'cn_edit_my_entry_shortcode' ); function cn_edit_my_entry_shortcode() { // Grab an instance of the Connections object. $instance = Connections_Directory(); // Get the current user ID. $userID = get_current_user_id(); // Check to see if the entry has been linked to a user ID. $entryID = get_user_meta( $userID, 'connections_entry_id', TRUE ); $results = $instance->retrieve->entries( array( 'id' => $entryID ) ); if ( is_user_logged_in() && ( $userID == $results[0]->user && $entryID == $results[0]->id ) && ( current_user_can( 'connections_edit_entry' ) || current_user_can( 'connections_edit_entry_moderated' ) ) ) { return cnURL::permalink( array( 'type' => 'edit', 'slug' => $results[0]->slug, 'text' => 'Edit My Entry', 'return' => TRUE ) ); } }I just tossed it together so it is not really tested but should work. The shortcode is
[connections_edit_link].Steven Zahm
Keymaster@ Ze’ev Ionis
Sorry, this is not possible. I have some rough code that allows multiple users to be linked to a single entry (by an admin) but not the other way around.
Steven Zahm
Keymaster@ Ze’ev Ionis
Sorry, no, Families can not be imported. Only the individuals. After you import the individuals you can then create the families.
Hope that helps!
Steven Zahm
Keymaster@ WomenBizNetwork
You have a couple options…
Since you have the Widget Pack, there is a Recently Added widget that you can add to your theme’s sidebar. If you’ve downloaded the update to version 2.2, you can add the Recently Added widget to the Connections Widget Shortcodes sidebar. After you configure the widget and click save you will be given a shortcode which you can place on any page to display the widget.
Alternatively, you could create use the order_by shortcode option to order the entries by the date they were added.
Hope that helps!
Steven Zahm
Keymaster@ Dani
Apologies for the trouble. I am aware of the issue with the
"being slashed. I have this bug fixed. The release is slated for Friday. If you can provide a template admin login I can login and apply a “hot patch” which will resolve this.As for the images on the Manage admin page… are you receiving any error messages? What version did you upgrade from? Do the images appear on the frontend of the site?
Steven Zahm
KeymasterGreat to hear! And, thanks!
Steven Zahm
Keymaster@ Ravinder
The shortcode for the Form extension is
[connections_form]however this shortcode is deprecated and no longer supported which is why you will find no documentation on it. It is only provided as backward compatibility for those still using it. What you should do instead is go to the Connections : Settings admin page, click the Display tab. Under the Results List Actions section you can enable the link which will add the “Submit New Entry” link as explained on the installation page.Hope that helps!
-
AuthorPosts
