Skip to Content Skip to Menu

Always show search fields

  • Seagul
  • Seagul
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
11 years 1 month ago - 11 years 1 month ago #234264 by Seagul
Always show search fields was created by Seagul
Hi there,

maybe it is just a little thing:
I always want to show the search fields on top of my user list. I don't want to click on "search users" before to show the fields.
How can I do that? Is there an option?

Thanks
Seagul
Last edit: 11 years 1 month ago by Seagul.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
11 years 1 month ago #234272 by krileon
Replied by krileon on topic Always show search fields
There isn't really an always visible mode for search fields, but you can use the second URL found at the top when editing your userlist in CB > List Management. It has "searchmode=1", which will force the search inputs to display, but it will cause the default list of users to be hidden until a search is made; next release of CB will have a "searchmode=2" though that will display search inputs and the default list of users.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

10 years 3 months ago #247381 by DutchAlfred
Replied by DutchAlfred on topic Always show search fields
I analysed the html of the page and the only difference in showing and not showing the search fields seems to be

<div class="contentdescription cbUserListSearch" id="cbUserListsSearcher" style="display: block;">

or

<div class="contentdescription cbUserListSearch" id="cbUserListsSearcher" style="display: none;">

Then the search fields will be there together with the list. I have been searching where I could change this in one of the component's files. But couldn't find it. How can I change this tiny thing?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 3 months ago - 10 years 3 months ago #247413 by krileon
Replied by krileon on topic Always show search fields
You just need to use the searchmode URL. It will cause the criteria to always display. When a search is made the criteria is also always displayed. This is improved further in CB 2.0 with a few more modes. You could also use the below CSS to force it to always display.

Code:
#cbUserListsSearcher { display: block !important; }

The !important will allow it to override the inline styled. There maybe more styling that needs to be forced like that.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 10 years 3 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum