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 4 replies, 3 voices, and was last updated 10 years, 5 months ago by
Steven Zahm.
-
AuthorPosts
-
04/10/2013 at 3:05 pm #256536
anthonyyang
ParticipantSince I am putting a lot of information in the Bio section, it tends to be a sources of random search results. I am really hoping that there is a way to exclude it from being searched.
Thanks!
04/10/2013 at 3:18 pm #256538anthonyyang
ParticipantAlso I am looking for a way for categories to be search via the search. I have chosen not to show all of my catgories, but I would like for a search to bring up results for a category which is tied to my departmental and hierarchical structure.
04/10/2013 at 3:55 pm #256548Steven Zahm
Keymaster@ anthonyyang
You can define which fields are searched under the Search tab on the Connections : Settings admin page. Sorry, but categories are not part of the search criteria.
07/01/2013 at 5:06 pm #264049Scott
GuestI’ve been working on some customizations to cmap and would like to display the category list for each item, which I’ve done by calling the categories in the card.php file as such:
<?php $categories = $entry->getCategory(); if ( !empty($categories) ) { $i = 0; foreach ($categories as $category) { echo $category->name; $i++; if ( count($categories) > $i ) echo ', '; } unset($i); }?>
I’d also like to make the categories searchable, but for the moment I’m having trouble making the basic search function return results. If I search for the word “computer” but the word “computers” (plural) is included in a searchable field, no results are returned.
Suggestions?
07/01/2013 at 9:13 pm #264062Steven Zahm
Keymaster@ Scott
I’m not 100% certain I follow what you’re asking, sorry. I think there are three questions, right?
The first one, are you just trying to list out the categories assinged to the entry? If yes, all you need is this command:
$entry->getCategoryBlock()
. This function can be found in theclass.output.php
file.With cMap, categories are already searchable. Click the drop down and there is a field to search thru the categories.
If you’re searching for computer or computers both should return results. Here’s demo. Searching for
villag
dropping thee
it returns the results forvillage
. -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.