Labels

I want to use global labels. It is good that there may be hierarchies. The problem arises when displaying the labels, for example in the discussions form, since if one configures several hierarchies to see everything there is, it is necessary to scroll.

1) Is there any way that the display of labels adapts in size according to the content? No matter that it takes up a lot of space, the important thing is (for me) that the person can visualize all the options.

2) It would also be interesting if the first level labels (no parent) could not be selected.
For example, I configure the following tags:
Provinces:
- Jujuy
- Salta
- Tucumán

The objective is select only "Jujuy", "Salta" and/or "Tucumán", not "Provinces".

Thanks for helping.

  • 463
  • More
Attachments
Replies (14)
    • 1) could you please provide screenshot of what you are talking about ?

      2) For now every label is actually hashtag, even if some level is non selectable, then it's still possible to specify it as hashtag.

      • Hi Alex
        1) My current membership (Standard) doesn't allow me to 'Post links'. How do I then attach a screenshot?

        2) The problem now is that any level is selectable, so there is no way to prevent a person from selecting "Provinces" for example. Perhaps in an upcoming version of "Labels" there may be an option that allows administrators to define non-selectable levels.

        Thanks.

        • Hi Alex

          I could attach screenshots in the original post. 

          I thought I could modify the height of the box to fit the content in Studio-Protean-Styles-Custom styles, but I didn't find a way to do it.

          • I've just upgraded your membership to allow to post links.

            You can add block in Studio Pages Builder into content adding page with the following JS code (please modify it for your needs), it will disable needed values:

            <script>
            $("select option[value='your_value_here']").prop('disabled', 1);
            </script>

            However it will apply to UNA 10 and below.

            • Hi Alex T⚜️ 

              Thank you for updating my membership.

              1) I added the JS code as you indicated and it worked correctly if I add a discussion by clicking "+" and then "Discussion". It doesn't work when I want to add a new discussion from the "Create post block" on the main page. In this case the "labels" options that I deactivated by JS code are still active.

              2) I need to configure many tags. Is there any way that the size of the labels box automatically adapts according to the number of labels or that the label box is user-sizeable? 
              Best regards 

              • Hi Alex T⚜️
                You say "However it will apply to UNA 10 and below."
                How then should I do this so that it also works in the new versions of UNA?
                Thanks.

                • Hello Claudio Acosta !

                  1) I tested from my side - works fine. Just need to add the "raw" block with this code right after the "Create post block" unit.

                  • Hi LeonidS 

                    The problem occurs because in "Create post" I have "Update" by default, instead of "Discussion", so when I click on "Discussion" the raw JS code does not work.

                    image_transcoder.php?o=bx_froala_image&h=2873&dpx=1&t=1580599741If I locate "Discussion" first, it works. But I need first "Update". Can it be solved by modifying the JS code?

                    image_transcoder.php?o=bx_froala_image&h=2874&dpx=1&t=1580599816

                    Thanks.

                    • 1) When "Discussion" isn't first in "Add new..." block more complex JS is required, it would be like a custom modification.

                      2) No, there is one default size, however you can change it with custom CSS. 

                      In UNA 11 it will be different control for selecting labels - there is tree select control, I'm not sure yet how to do it there.

                      • Hi Alex T⚜️ 

                        1) Yes, I thought so. I suppose that using JS I should detect the "on click" action in "Discussion" and then execute the JS code to disable the tags, although I don't think I can do this without modifying the UNA code.

                        2) I tried to change the size of the box using CSS in "raw block", but it also changes the height of another "select" element that I don't need to modify.

                        <style> .bx-form-input-select_multiple, .bx-form-input-radio_set, .bx-form-input-checkbox_set { height: 300px; resize: vertical; }
                        </style>

                        It may be convenient to wait for the launch of UNA 11, hopefully it won't take long.

                        Thanks.

                        • 1) You are correct, but I believe that it's possible to do with some RAW block with some JS code, which a bit more complex than I provided before.

                          2) You need to specify name of the field, like this:

                          <style> 
                          select[name='your-field-name-here'] { 
                              height: 300px; resize: vertical; 
                          }
                          </style>
                          • Hi Alex T⚜️ 

                            1) How long would it take to do that? how much money would it cost?

                            2) Thank you. It works perfectly with that code.

                            Regards.

                            • it maybe 0.5-1 hour, but it's better to wait for UNA 11, since it will be different control there and different modification will be required

                              • Thanks Alex T⚜️ , I'll wait for UNA 11.

                                Login or Join to comment.