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.1.7, Authored, cMap, code snippets, enable_category_multi_select, link, Market, shortcode
- This topic has 3 replies, 2 voices, and was last updated 7 years, 5 months ago by
Steven Zahm.
-
AuthorPosts
-
02/13/2015 at 3:47 am #319211
Sam Chadwick
ParticipantSteve,
Firstly, great work creating the plugin. It’s taken me a while to get my head around all of the custom functions you’ve created, and I’ve needed to create a few more of my own to personalize the output formats but I’m getting there.
I have purchased both the “market” template and “form” extension but I’d like to ask for you help in solving a few of the outstanding gaps I need to fill for the plugin to meet its intended purpose.
1) Tags for entries. While the ability to assign a category is nice, the ability to assign multiple tags (the same way you can for regular WordPress posts) is required. I need to be able to allow users to add multiple tags in the “form” and filter the entries in the “market” view column instead of the category filter in place today. Really, I don’t need both tags and categories, so if multiple categories could be assigned, and multiple categories simultaneously selected to filter, that would be sufficient.
2) Posts associated with entries. I enable visitors to write posts (currently via the Frontier Post plugin) to the site and would like to enable them to associate their posts with one or more Connections entries. Do you have any suggestions / code snippets that would enable me to achieve this?
Many thanks,
Sam02/13/2015 at 9:22 am #319295Steven Zahm
Keymaster@ Sam
re: Tags for entries. While the ability to assign a category is nice, the ability to assign multiple tags (the same way you can for regular WordPress posts) is required. I need to be able to allow users to add multiple tags in the “form” and filter the entries in the “market” view column instead of the category filter in place today. Really, I don’t need both tags and categories, so if multiple categories could be assigned, and multiple categories simultaneously selected to filter, that would be sufficient.
With all the work I’ve done in 8.1.7 and for the forthcoming 8.2 release. Adding tag support is finally within reach … long on my todo list. So adding tag support as far as adding and removing to/from and entry would be somewhat easy. But… they would still be a lot of work to do so one could query/filter entries by those tags.Multiple categories can already be assigned, so you could use them as “tags”. Fun fact, the difference between categories and tags in WP boils down to categories can have a hierarchy and tags can not.
Selecting by multiple categories is possible, just not with Market because it uses a radio input to determine the selected category. This radio list would have to be converted to a checklist with a submit button.
Now, cMap includes this as a built in feature (actually all templates which use a category drop down), although it be a beta feature beta feature. To enable this feature in cMap you would add
enable_category_multi_select='true'
to the shortcode.Now since it is beta… after multiple categories are selected there is not an obvious way to submit the selection. Click the search button will do it. Alternatively you can do this (for cMap):
Install the Code Snippets plugin.
Add a new snippet with the following code:function cn_cmap_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-cmap', 'cn_cmap_add_submit_button', 99, 2 );
Save and activate the snippet.
This snippet will add a submit button to cMap.
re: Posts associated with entries. I enable visitors to write posts (currently via the Frontier Post plugin) to the site and would like to enable them to associate their posts with one or more Connections entries. Do you have any suggestions / code snippets that would enable me to achieve this?
I assume this still requires the visitors to logging which requires them to have an account on your site, correct? If, so, then you can use the Link and Authored extensions to accomplish this. When the user logs in Link will link their user account to their entry. After the link is created, Authored will display their last five posts on their details page.Hope that helps! Let me know.
02/16/2015 at 9:49 am #319609Sam Chadwick
ParticipantFantastic! The new template and custom submit button work like a charm.
02/16/2015 at 8:51 pm #319642Steven Zahm
Keymaster@ Sam
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 must be logged in to reply to this topic.