Feature suggestion componen builder

@charlie
when i create a component and have all the parameters entered the following would be awesome:

all selected colors and or texts that are entered in the component builder should be considered as initial values.
so i already have everything filled in the builder when i insert the component and only have to change what doesn’t fit.

also a possibility: a checkbox if the initial values should be taken from the entered values in the component builder or if the component should be empty.

would something like this be possible?

Hey good to hear from you. I think in a way an element template kind of does this. As it places a copy of an element which has all the values you created it with. I’m not entirely sure what you mean here though. Do you mean an indicator letting you know you’ve changed from the default parameters?

hi
if i save it as templazte, then first of all i see in the builder all child elements and not only the parameters themselves. Further, when I then make changes in the component editor, it is not reflected in the page builder.
If I now have a button that I have in many places and want to manage centrally, this is not good.

What I mean with the initial values: it would be great if all entered values in the component builder are taken over as initial values. this saves me having to enter the values in the parameters manually.

   "textColor" : {
    "label"   : "TXT Color",
    "type"    : "color-pair",
    "initial" : {
       "base" : "{{dc:global:color id='B88IlwVhPoirxgBFGj'}}",
       "alt"  : "{{dc:global:color id='B88IlwVhPoirxgBFGj'}}"
    }

e.g. with the colors: if the colors are automatically taken over as initial values, i don’t have to enter them manually here. this saves time and i think it’s more straightforward. and i did not heave to search the correct global color id…

do you know what i mean? :slight_smile:
thanks again
Harry

and that is what is meant by the checkbox:
there are certainly those who want a completely empty component and those like me who automatically want to have the inital values.

if i set the checkbox, the values selected by the component builder in the inspecor are set as initial values, if not checked, no initial values are taken over.

I’ve got you on the ID issue. Yeah it’s no fun searching for the IDs of a color. We didn’t have an API for setting up dynamic options before, but now 6.3 is out we can start doing better dynamic content controls. We’ll see a select box for global colors in 6.4.

I think I register on the checkbox now. As in you don’t want to have to setup initialValue for every field you would rather it save the defaults from the component builder?

image

My solution for the global colors issue has been to change the IDs of the colors at the beginning of a build. Once you set up the colors, you can jump into the Dev Tools and see the json of the color settings and adjust the IDs to be something like brand-red and link and link-interaction and body-color, things like that. Makes any code much easier to remember and parse when reviewing.

1 Like

I think I register on the checkbox now. As in you don’t want to have to setup initialValue for every field you would rather it save the defaults from the component builder?

yep that would be awesome! so i can select a checkbox e.g. initial values from builder.
if selected, all initial values are taken over from the builder,
if not i have an empty component or i can write the initial values in the parameters.

thanks again :slight_smile:

1 Like