The category drop down will automatically show all categories. You can use enable_category_by_root_parent option to limit which categories are shown in the drop down by limiting the drop down to specific root parent categories [see definition of root parent category]. This is very useful if you want to create multiple directories. For example on a chamber of commerce site you could show a directory business members on one page and on another page a directory chamber officers with all entries managed by a single installation of Connections.
DEFINITION: root parent category – This is a category that is not a child of another category.
NOTE: This option must be use with the category shortcode option.
Get the demo shortcode
[connections category=31 enable_category_by_root_parent=true] |
Demo
The category drop down is not being limited to a root parent category.

Greater Reading Chamber of Commerce & Industry
The category drop down being limited to the demo root parent category.

Greater Reading Chamber of Commerce & Industry

The above code is not working for me, all the categories are still showing. What am I doing wrong?
shortcode on page:
[connections category='2' enable_category_by_root_parent=’true’ show_birthday=’false’]
page result:
http://dev.homeopathy.org/partners-view/registered-homeopaths/
I have another issue as well. The drop down looks like it is using the css of my templates ordered list which has an image (dot with arrow inside) before it). Is there a way to specify an alternative ordered list without the image in the css and tell Connections to use it instead? My limited programming experience can get me into trouble
If I know what code to use and where to put it… I can make changes, but creating the code from scratch (css and php) is not my forte. Your help would be greatly appreciated!!!
@Lisa Rae
I see you figured out the shortcode issue.
If the theme has a custom CSS area, add this following to it. This will prevent the theme from applying the background image to the drop down.
This CSS will be added to next release of Connections so you will not have to worry about it.
I fixed the shortcode issue
When I coded the code from your website it created a different ‘
I rewrote the line and it works… yaaa
I would really appreciate assistance with my other issue though.
I just ran into another issue. Under each category, I am trying to create sub-categories for states. However after creating the first set, categories menu won’t let me create duplicate names (Arizona) even if the slug and parent category is different. Any ideas?
@Lisa Rae
Right now this is a limitation. One I hope to have addressed in the next release.
aha, here is the issue I was looking for. I was trying to create new (standalone) categories that had the same name as an existing (child) category, and it was slapping my hand. This kind of messes me up on something unless I (awkwardly) prefix the child category somehow.
This is something you expect changed in an upcoming release? Any idea on timing?
Thanks.
And as a followup question. If I wanted to have ALL of the root parent categories listed EXCEPT one, is there an easier way of doing that than listing out all 50 other cat id’s in the shortcode?
Thank you.
@Mitch
Sorry, nothing right now. I do have an option started, exclude_category, but the function is really too limited to useful. When completed, this is exactly when of the intended usage scenarios.
Is it possible to change the “select category” label in the drop down to something else?
@Ray
Yep, take a look at this doc page for details.
That worked great and is exactly what I was looking for!
Just one last question, if you have for example, 4 root categories with children in one drop down menu, is it possible to exclude the child categories and just leave the parents showing.
On one of my pages I basically just want 4 root categories to choose from and no child categories. I have a lot of categories under each one and I think I read that you can exclude by id the ones you want to hide. Is there a simple way rather than enter each category to exclude?
Thanks
@kulblade
Sorry, no, not at present. That is on my list of improvements to make.
Hi Steven….no worries, I’ll work on what I have and look forward to it in the future!
Is there any way to HIDE the root category. I’m making a list of available conference rooms across multiple locations and my category control looks like this:
SELECT LOCATION
SHOW ALL LOCATIONS
CONFERENCE ROOMS
LA
NASHVILLE
CHICAGO
I’d like to hide one of “Show all locations” or “Conference Rooms” – Preferably “Conference Rooms” because it’s redundant.
Thanks!
@Jeffrey
Sorry, not presently.
I’m trying to use Connections to make two different directories on two different pages. One is of individual members (http://aiaeb.org/about/allied-member-directory/) and the other is for companies (http://aiaeb.org/find-an-architect/member-firms/)
The two have very different categories.
How do I hide the categories of one page from the other page? Is there an easy way?
@Sidney
If you’re using the cMap, Market or Tile Plus template you can use this shortcode option along with the category shortcode option as described in the instructions above to separate which categories are shown.