Skip to Content Skip to Menu

[SOLVED] Can I do this with CB Conditionals (or, somehow?)

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 1 month ago #287284 by krileon
You can substitute in individual fields. So in a Custom HTML field you can quite literally output those fields however you want. See the below regarding substitution usages.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb

Having 1 tab per alt should also be fine, but my guess is there's something wrong with whatever condition you're using. You should just have to condition the entire tab instead of each field on that tab.


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.

8 years 1 month ago #287285 by Paladin Brewer
Replied by Paladin Brewer on topic Can I do this with CB Conditionals (or, somehow?)
I'll try it when I get home. My question is, if I make all the fields on the "Alts" tab, but then make them not show...so I can then do a custom html field that has them outputting the way I want it to look...will they show? Because I assume if I do have them showing and then also do the custom html field they will show twice.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 1 month ago #287287 by krileon
You have to put that tab in a not shown on profile position then ensure the fields themselves are configured to display on profile within CB > Field Management. This will allow them to substitute in fine without directly displaying that tab on profile.


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.

8 years 4 weeks ago #287302 by Paladin Brewer
Replied by Paladin Brewer on topic Can I do this with CB Conditionals (or, somehow?)
Sorry, still not working for me.

-I have the 3 fields on the "Alt One" tab, and that Tab I have set to not show on profile.
-The 3 fields I have set to Show on Profile:No, Show on Profile Edit: Yes, 1 line with title.

- On the "Alts" tab (also set to not displayed on profile) I have:
-1 custom html field, with the following code:
Code:
<div class="row"> <div class="col-sm-6">[cb:userdata field="cb_alt_one_name" formatting="divs" /]</div> <div class="col-sm-6">[cb:userdata field="cb_alt_one_class" formatting="divs" /]</div> <div class="col-sm-6">[cb:userdata field="cb_alt_one_race" formatting="divs" /]</div> </div>

This isn't working, it is not showing the editable fields on Profile edit. All I get is this:


Am I setting something wrong when I'm calling the fields?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 4 weeks ago - 8 years 4 weeks ago #287320 by krileon
That's profile edit. This won't work for profile edit. The substitution usage is for profile view. You need to set your fields to display in profile edit, profile view, and move their tab to a not shown on profile position. Your Custom HTML field should be set to not display on profile edit.

You can not have what you're wanting on profile edit without putting all your fields on 1 tab then using CSS to make them display side by side if you're wanting the grid-like usage in profile edit. There is a profile edit output for substitutions, but it probably won't work right and your Custom HTML field is unable to differentiate from profile edit and profile view as we don't have a view condition for substitutions yet.


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: 8 years 4 weeks ago by krileon.

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

8 years 4 weeks ago #287332 by Paladin Brewer
Replied by Paladin Brewer on topic Can I do this with CB Conditionals (or, somehow?)
Ah well that's what I was wanting this whole time :) Any chance of an example CSS of how to get a row of fields in a line? :/

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

Moderators: beatnantkrileon
Powered by Kunena Forum