Skip to Content Skip to Menu

CSS identifier

2 days 1 hour ago #343645 by m.o.skirde
CSS identifier was created by m.o.skirde
Hi Kyle,

as I'm running an international community, I'm using a KI powered translation tool. Of course Firstname, Middlename and Lastname should not be translated.

Same for the name of groups in GroupJive, but only for groups in certain categories.

In the KI tool it is possible to create individual exception rules for this purpose.
My idea would be to add an additional class to those fields in the field management section of CB, in order to identify them? 

If yes - how can I achieve this. How to deal with the group names (didn't find fields for those yet)?

Thx in advance,
MO 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50311
  • Thanks: 8616
  • Karma: 1472
1 day 14 hours ago #343654 by krileon
Replied by krileon on topic CSS identifier

My idea would be to add an additional class to those fields in the field management section of CB, in order to identify them?

That's doable. Simply edit your fields in CB > Field Management and add your custom CSS class to the "CSS Class" parameter under the Global tab. You can do this for entire tabs too in CB > Tab Management.

If yes - how can I achieve this. How to deal with the group names (didn't find fields for those yet)?

There's no functionality for that, but group names already have a CSS class to denote group name. Groups are also surrounded by a CSS class matching their group id.

So for example if the grounds id is "10" then the CSS class surrounding it is "gjGroup10". Names are surrounded by "cbCanvasLayoutTitle", which is a part of our generic canvas component. To specifically target group names in the top canvas you'd use the CSS selector of ".gjGroup10 > .cbCanvasLayout .cbCanvasLayoutTitle".

Group lists are a bit different. They'll have "gjGroupsGroup10" while categories will have "gjCategoryGroup10". For those you should be able to just do ".gjCategoryGroup10 .cbCanvasLayoutContent".


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: m.o.skirde

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

Moderators: beatnantkrileon
Powered by Kunena Forum