Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Joomla drop down menu style (chnz-menu)

  • crauley
  • crauley
  • OFFLINE
  • Posts: 26
  • Thanks: 2
  • Karma: 0
8 years 8 months ago - 8 years 8 months ago #277200 by crauley
Hi

I try to edit a menu (jQuery chosen drop down) for multiselect and singleselect.

Like on this page here

How could I do this for cb fields?
Last edit: 8 years 8 months ago by crauley.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277209 by krileon
Replied by krileon on topic Joomla drop down menu style (chnz-menu)
Our select2 is not usable on frontend at this time. You'd probably need to use CB Auto Actions to add jQuery to the profile edit and registration form display triggers to change your select fields to select2 type usage. This might work with the below usage.

Global
Triggers: onBeforeRegisterFormDisplay, onBeforeUserProfileEditDisplay
Type: Code
User: Automatic
Access: Everybody
Action
Method: jQuery
Code:
Code:
$( '.cbft_select select,.cbft_multiselect select' ).cbselect();
Plugins: cbselect

Note this is an example. I did not test it. Adjust as needed.


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.
The following user(s) said Thank You: crauley

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

  • crauley
  • crauley
  • OFFLINE
  • Posts: 26
  • Thanks: 2
  • Karma: 0
8 years 8 months ago #277252 by crauley
Replied by crauley on topic Joomla drop down menu style (chnz-menu)
Thanks so much for your response!

That works for field which I edited in CB field manager, but not for field types with a query.
Is there a solution use this kind of select also for query fields?


Also I have a Problem with displaying "query drop down field". They looking like a normal select field, but I defined it to query drop down and set size to "0".

How can I edit them like I need it?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277269 by krileon
Replied by krileon on topic Joomla drop down menu style (chnz-menu)

That works for field which I edited in CB field manager, but not for field types with a query.
Is there a solution use this kind of select also for query fields?

The parent selector is .cbft_FIELD_TYPE_HERE. So with that you can target additional field containers like the query selects, which would probably be the below.

Code:
$( '.cbft_select select,.cbft_multiselect select,.cbft_queryselect select,.cbft_querymultiselect select' ).cbselect();

Also I have a Problem with displaying "query drop down field". They looking like a normal select field, but I defined it to query drop down and set size to "0".

Query Select just builds the values available in the select field from the results of your database query. It'll look and act just like any other select field. Note sure how you're expecting it to function.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum