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.
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.
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.
04/21/2015 at 9:17 am #331947
Hi again Steve,
I’ve successfully implemented a version of the “Income Level” add-on (with personalized variables and drop-down values). I thought that I would be able to copy the plugin to a new folder, change the variable names (and drop-down values) and re-use. This works fine during the “edit entry” process, but when I come to display the stored values on the cMap template, only the value from the original Income Level add-on is displayed. I thought it might be that I had missed changing a variable name but I have been through the code many time to check. In the meantime, I have also replicated the same add-on, switching the option type from ‘select’ to ‘text’ and have been able to implement many of these, each of which display properly on the template. So, I think there’s something related to the drop-down type that I am missing here. Do you have any suggestions?04/21/2015 at 10:50 am #331950Steven ZahmKeymaster
If you successfully duplicated and changed all the require unique IDs for the field which I suspect you did since you can add and update (?) your new custom field then the only step you might be missing is enabling the display of it on the Connections : Settings admin page under the Display tab. If it does not show up as an option to display, make sure you’ve updated the
settingsOption()function to match the field ID in the
Hope that helps! Let me know.
PS> Can you sahera link to your directory? I’d lie to see what you’ve done.04/22/2015 at 4:41 am #332021
The data being entered via Form is adding and updating correctly and I can see it populating the _meta table.
I checked and the registerMetabox() ‘fields’=>ID value matches the settingsOption() $blocks[‘fields-id’]. The new fields have been turned on the Settings->Display.
Interestingly though, checking and unchecking entries under the “Single Entry” section appears not to change what is displayed on the cMap card-single template, where I cam using $entry->getContentBlock( ‘fields-id’ ); to display the desired values. The former “income levels” value is displayed, as are all of the values that are text, irrespective of whether they are enabled or disabled on Settings->Display.
Any other thoughts?
Unfortunately the implementation is on our intranet and so I can’t share anything.04/22/2015 at 9:07 am #332058Steven ZahmKeymaster
If you are adding
$entry->getContentBlock( ‘fields-id’ );you are explicitly adding it to the template and should not matter what you have setup in the options. The options will only affect this line;
$entry->getContentBlock( $atts['content'], $atts, $template );
That said, it should still show… there’s only one other thing I can think of, did you change the action hook name which displays the content block? The original line of code is:
add_action( 'cn_output_meta_field-income_level', array( __CLASS__, 'block' ), 10, 4 );
I’m guessing you need it to be based on what you said above:
add_action( 'cn_output_meta_field-fields-id', array( __CLASS__, 'block' ), 10, 4 );04/22/2015 at 10:42 am #332068
Perfect! Yes. That solved it. Somehow in the find/replace, the field suffix had been deleted. THANK YOU!
You cannot reply to this support topic. Please open your own support topic.