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 2 replies, 2 voices, and was last updated 9 years, 9 months ago by
Linda Moore.
-
AuthorPosts
-
11/13/2016 at 9:08 pm #399746
Linda Moore
ParticipantI have just installed connections & cMap so hopefully I have the latest release. I have copied the snippet for initial_results.
This is the code I added to a page:
[connections category=2 enable_category_by_root_parent='TRUE' initial_results='FALSE']If I don’t use the initial_results=’False’ then the enable_category_by_root_parent works, but when I added initial_results the root parent restriction doesn’t work until after I’ve selected from the drop-down.
Also, with initial_results added, the search box appears (below the category drop-down box) even though I disabled the search controls in the template customization. Without initial_results the search box correctly does not display.
Any ideas where the initial_results could be conflicting with these other options?
11/14/2016 at 1:35 pm #399814Steven Zahm
Keymaster@ Linda
re: If I don’t use the initial_results=’False’ then the enable_category_by_root_parent works, but when I added initial_results the root parent restriction doesn’t work until after I’ve selected from the drop-down.
The code snippet needs to be updated in order to support the
enable_category_by_root_parentshortcode option.Find this line in the snippet:
$category = cnTemplatePart::category( $atts );Add this line so it comes before it:
if ( $atts['enable_category_by_root_parent'] ) $atts['parent_id'] = $atts['category'];Save and update the snippet.
I did not test, but, that should do it.
re: with initial_results added, the search box appears (below the category drop-down box) even though I disabled the search controls in the template customization.
Search for this line in the snippet:
$search = cnTemplatePart::search( $atts );Change it to this:
$search = '';Now the keyword search will not be displayed.
re: Any ideas where the initial_results could be conflicting with these other options?
It not really a conflict. Basically what the snippet does is display the category/search controls if a search is not being done. This is hard coded in the snippet. The template is only loaded when a search is being done, so, none of the templates functions/features/option are applied.
Hope that helps!
11/14/2016 at 1:46 pm #399816Linda Moore
ParticipantBoth changes work perfectly…thanks!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
