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 10 years, 9 months ago by
Steven Zahm.
-
AuthorPosts
-
10/26/2015 at 1:48 am #351728
Jonathan Dare
ParticipantI’m trying to use the slim-plus template with enable_category_multi_select=”true”, however, the only way to update the search filters is to click the magnifying glass in the Search box above the category select dropdown. As this is not at all intuitive for users, I’ve been trying to fix it by adding a simple Submit Search button, but I haven’t been able to figure out how to get this to work yet…
Another solution I explored was using a jquery listener event to submit the form whenever a category was selected, but once again, I haven’t been able to get it to work either, with many combinations, yet none have successfully triggered the search update.
Anyway, if you could help offer a solution to the first problem, I won’t need a solution to the second. But if not, perhaps a little guidance on how to structure the jquery listener. Currently I have this:
$(document).ready(function() { $('select[name*="cn-cat"]').change(function(){ $(this).closest('form').trigger('submit'); }); });Still, I’d prefer just to add a Submit Search button, so I can abandon the listener idea entirely.
10/26/2015 at 2:05 pm #351807Steven Zahm
Keymaster@ Jonathan
Seems like the javascript code should work… any here’s another way.
Install the Code Snippets plugin.
Add a new snippet with the following code:
function cn_slim_plus_add_submit_button( $atts, $results ) { if ( $atts['enable_category_multi_select'] && ! get_query_var( 'cn-entry-slug' ) ) { cnTemplatePart::submit( array( 'return' => FALSE ) ); } } add_action( 'cn_action_list_before-slim-plus', 'cn_slim_plus_add_submit_button', 99, 2 );Save and activate the snippet.
That should do it. Hope that helps!
ps. Do not forget to activate that new code snippet.
10/26/2015 at 11:57 pm #351890Jonathan Dare
ParticipantThat worked wonderfully, thank you so much.
10/27/2015 at 10:28 am #351945Steven Zahm
Keymaster@ Jonathan
Great to hear!
If you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
https://wordpress.org/support/view/plugin-reviews/connections
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
