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: 0.8.14, category, enable_category_multi_select, multi-select, slim plus
- This topic has 4 replies, 2 voices, and was last updated 12 years ago by
David Rogers.
-
AuthorPosts
-
08/01/2014 at 5:25 pm #299354
David Rogers
ParticipantI’ve added the below code snippet as instructed in another post but I’m still not seeing a Submit button with the tile-plus template. Multiple select works fine with the spyglass icon. Any ideas?
function cn_cmap_add_submit_button( $atts, $results ) { if ( $atts['enable_category_multi_select'] ) { cnTemplatePart::submit( array( 'return' => FALSE ) ); } } add_action( 'cn_action_list_before-cmap', 'cn_cmap_add_submit_button', 99, 2 );08/02/2014 at 8:22 am #299397Steven Zahm
Keymaster@ David
That is because the action hook name is specific to cMap and will run only when using cMap. Here’s a tweaked version that should run with Slim Plus:
function cn_slim_plus_add_submit_button( $atts, $results ) { if ( $atts['enable_category_multi_select'] ) { cnTemplatePart::submit( array( 'return' => FALSE ) ); } } add_action( 'cn_action_list_before-slim-plus', 'cn_slim_plus_add_submit_button', 99, 2 );Hope that helps!
08/02/2014 at 10:18 am #299407David Rogers
ParticipantThat worked great, thank you!
Now I have the submit button on the card-single.php page as well where there is no search function.
How can I only have the submit button on the card.php page?
08/02/2014 at 12:34 pm #299412Steven Zahm
Keymaster@ David
Oh, yeah, I guess that would add the submit button there too, not good. This should do the trick:
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 );08/02/2014 at 1:36 pm #299432David Rogers
ParticipantThat worked perfectly. Thank you!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
