thanks for reading!
first of all, i just fixed my specific problem with a custom php trait in my custom template. but generally:
>> 1 what is your output (html, custom php)?
I use a custom MVC that sits on top of flexicontent. My Controller reads directly from e.g. $item->fields->value[2] (in a loop, to build a carousel).
problem here is:
while flexicontent's field->display_arr always has the correct lebgth (because empty values are filled with ""-values), it has formatted data.
But I want raw data, like in flexicontent's field->value.
That in turn only stores non-empty values.
My question was: can we an option to fill the field value array with some, say, null, if empty, instead ommitting the array element?
(Again, I helped myself in thsi case like this: php trait "fieldVal" -> function normalizeFieldValLength() -> compares above mentioned fields, and returns a value-array of correct length)
Hopefully I described the problem clearer now
Cheers,
Ben