Hi there.
I like to outsource the definition of field props, methods… to a module. Something like:
Kirby::plugin('brand/name', [
'fields' => [
'myfield' => new MyField(), // <- But it expecting an Array 🤷‍♂️
]
);
I don’t want to deal with static methods or even worse, with outside defined variables.
Do someone could give me little a hint to achieve this?
Btw. Is there a possibility to access props from a field in a field method? Now i jam some props that i needed into files value. This is hard to handle and is a big mess.
I’m really, really thankful for some inputs…