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 9 replies, 3 voices, and was last updated 8 years, 5 months ago by
Steven Zahm.
-
AuthorPosts
-
04/23/2015 at 5:43 am #332134
Kasper Tikjøb Andersen
ParticipantI need to show a category with the category drop down and the search field, this seems to work by using:
[connections category_in='120' template='tile-plus']
But when you search the search only searches within that category – i need the search to work for all persons. How can i do this?
04/23/2015 at 8:26 am #332146Steven Zahm
Keymaster@ Kasper
Sorry, but if you enforce a limit with the shortcode
category_in
option, it can not be overridden. You only have two options, the first is to remove that option the second is to use thecategory
shortcode option instead. Using that, a person would be able to change the category and then search within that category instead.04/23/2015 at 8:31 am #332148Kasper Tikjøb Andersen
ParticipantThat’s ok, i can use
category
instead, but i have just tried using category, and the page still only searches within the category set in the shortcode.I need it search all persons, what should i do?
04/23/2015 at 9:21 am #332154Steven Zahm
Keymaster@ Kasper
To search in a different category, you first have to switch to it using the category drop down when using the
category
shortcode option. This is because you have effectively limited the “All Categories” by setting the manual override (the category shortcode option). If you did not have thatcategory
shortcode option, then the entire directory would be searched when there is no category selected in the drop down. This works pretty much exactly like when you search at Amazon you can either choose to search the entire store or limit the search to “department” (another word for category). However, the main difference is you’ve manually limited the initial results to your “default category” by using thecategory
shortcode option.Ok, I said the same thing in a couple different ways so I hope that makes sense!
Now, with this all said, there is something else that I forgot about that would allow you to override the
category
shortcode option when a search is performed. I just added a QuickTip about it discussing it in detail.You can try this out. Like I said in the QuickTip, this has not been thoroughly tested nor is it supported, but other are using it to their satisfaction. I hope it helps you too!
04/25/2015 at 6:16 am #332413Kasper
GuestI have tried adding the function, but it didn’t change anything for me.
Also i notice i have another problem, when doing a search it changes all the connection shortcodes on the page, and it looks pretty silly when it does 4 searches on http://www.fcskanderborg.dk/kontaktpersoner.
I don’t understand why you don’t have a “default-category” argument to the shortcode.
But as a work-around, i think i can just change the page where the category drop-down and the search list sends the user. Then i can send the POST to a page only using one shortcode which shows all persons. Where in the Tile Plus, do i change this?
04/25/2015 at 10:41 am #332430Steven Zahm
Keymaster@ Kasper
re: I have tried adding the function, but it didn’t change anything for me.
Please try again. It seems there was a small bug which I just fixed.
re: I don’t understand why you don’t have a “default-category” argument to the shortcode.
Too niche. I already provide probably too many options. Between the core shortcode options and ones that template enables, there are over 60 already.
re: Also i notice i have another problem, when doing a search it changes all the connection shortcodes on the page, and it looks pretty silly when it does 4 searches
Yes, if you put the direct shortcode on the page multiple times, you’ll get the directory multiple times. Each shortcode instance is not aware of the other.
Here’s a few shortcode options which you can utilize to work with this:
You would not use
home_id
andforce_home
at the same time but you could use either to define a second page for the links to resolve to. You could use theforce_home
option to create “Results” page where all links and the form post would resolve to the Directory Home Page defined on the Connections : Settings admin page under the General tab. On this “Results” page you would only have the[connections]
shortcode with no other options.Hope that helps you out.
04/26/2015 at 7:54 am #332533Kasper Tikjøb Andersen
ParticipantYes, now your code works and i can search on the same page.
Using lock=’true’ the search, doesn’t change the other 3 shortcodes, very good. But it still shows “You are searching for the keyword(s): kasper” on each shortcode block – even though it is actually only searching on the first. Is this a bug?
04/26/2015 at 2:31 pm #332551Steven Zahm
Keymaster@ Kasper
Nope, not a bug… maybe, I’ll have to think about that.
Like I said each instance of the shortcode is not aware of any other on the page. Connections is primarily designed to be used on the page once. As you would find to be the case for other directory plugins too. I do provide enough configurable options to accomplish this though.
What you need to do is go to the Connections : Settings admin page, click the Display tab and disable the display search message option.
04/26/2015 at 2:59 pm #332554Kasper Tikjøb Andersen
ParticipantPerfect, this works good – i am happy now :-)
04/27/2015 at 10:50 am #332602Steven Zahm
Keymaster@ Kasper
Great to hear!
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.