nblgeoweb VIP
Total posts: 178
09 Июль 2014 14:05

I have a multi-level select field and when I click "edit values" from the admin side, the list of values is not presented very well. It is a bulleted list but the top-level values are slightly indented and the second-level values are not. From looking at the code, it appears that the problem may be that the class "list-level-1" is not defined so with my template, the list indenting is not displaying nicely.

Последние изменения: 31 Июль 2014


nblgeoweb VIP
Total posts: 178
09 Июль 2014 14:19

The issue is the file: fields/multilevelselect/tmpl_form/constructor.php

I changed the css in that file to the following to display things in a bit more readable form:

.list-level-1 {
        margin-left: 20px;
}

.list-level-2 {
        margin-left: 40px;
}
.list-level-3 {
        margin-left: 60px;
}
.list-level-4 {
        margin-left: 80px;
}
.list-level-5 {
        margin-left: 100px;
}


Sergey
Total posts: 13,748
09 Июль 2014 23:50

Ok. Thank you.


nblgeoweb VIP
Total posts: 178
31 Июль 2014 18:56

I just installed v8.569. I like what you have done with putting the icons to the right of the labels. There is an error in fields/multilevelselect/tmpl_form/constructor.php though. The list-level-1 and list-level-2 classes have the same margin-left setting. I just change it to the code I posted above and combined with your changes, it looks great.

Работает на Cobalt