Serhioromano / cobalt-9

Cobalt 9 Beta Test Group
11 stars 2 forks source link

Parameters for field templates #136

Open Serhioromano opened 5 years ago

Serhioromano commented 5 years ago

A lot of parameters in the field are related to how it looks. A good example is the gallery field. In order to proceed with making Cobalt looks simplify, I want to move all rendering specific parameres to field templates.

How it will work.

When you select a template, ther there is a corresponding XML file, additional parameters will appear in the list. No modal dialogs.

kiranetph commented 5 years ago

It would be good to have field template parameter. Before we did not have this feature so everything needed to be hard coded.

kiranetph commented 5 years ago

additional parameters will appear in the list. No modal dialogs.

maybe they can appear "on demand". It means only if the user clicks a "reveal" icon. Otherwise too many parameter will be visible again, since every field has 3 field templates available I'm thinking of something like this:

image

kiranetph commented 5 years ago

Addition: In line with the template editing inside Cobalt 9, you should be able to edit the templates direct from the field parameter page.

Serhioromano commented 5 years ago

It is gonna be a modal window at the end. Why? Because when you load it to the right column list it shifts and you lose control. You cannot see what was added and where. You need a few moments to study the list of parameters to understand wah was loaded.

As much as I wanted to avoid modal, I do not see other way around.

2019-09-04_13-37-41

Serhioromano commented 5 years ago

The main architecture is done. Now I am going through all fields and refactor their parameters. That will probably take me 2 days.

kiranetph commented 5 years ago

Organised parameter under the template would be much nicer than a modal window.

Can you not "hide" first the default parameter of the default templates and only show them when you click the carpet icon (see me screenshot). When you click the icon, it will reveal the parameter direct under the individual template. if you change the template, the parameter block below the individual template changes.

I will try to make an image of it.

kiranetph commented 5 years ago

image

kiranetph commented 5 years ago

the 3 caret icon work like a radio button. only 1 is open. when you open another one, the open one will close. With this approach, only minimal parameters are shown. by default all are closed. when you change the template, the parameter will change

Serhioromano commented 5 years ago

Anyway, in some fields, there are a lot of parameters. They will grow page 2 scrolls full heigh just template parameters. It will be still complicated. I'll leave it as it is now and we will see what others think about it.