themosis / framework

The Themosis framework core.
https://framework.themosis.com/
GNU General Public License v2.0
671 stars 121 forks source link

Refactor the infinite field #524

Open jlambe opened 6 years ago

jlambe commented 6 years ago

Rewrite the infinite field.

dgines commented 5 years ago

Hello ! When will this feature available in 2.0 version?

Thank you.

Note: I´m glad with the update from today !!

jlambe commented 5 years ago

@dgines No time yet defined.

On release 2.1, we focus on enhancing the new field API and simplify the creation of custom fields for users. Not sure if I can make it as well with the infinite field.

Nonetheless, as the field needs some refactoring due to storage issues, perhaps you can provide more details on what case you might expect to use it and how. Your feedback can really help here :)

dgines commented 5 years ago

image

For example: I have to create multiple "Product Kits". (1 -> n) Kit gots: productID´s, imageKit.

jlambe commented 5 years ago

In your case, I suppose that the way products should be added is "dynamic". Like you have a list of all available products and then on another list, you add the required one. Is that correct ?

dgines commented 5 years ago

That´s it !

npsouza commented 5 years ago

Hello,

I'm using 1.3 version and using infinite fields as in the example below. The user can add, sort and remove the desired items and each post can have their list

image

How to do this in 2.0 version? Thank you

jlambe commented 5 years ago

There is no infinite field for the moment on 2.0. It will be implemented back at some point but I can't give you a date.

npsouza commented 5 years ago

Thanks, no problem.

There an another way to do this, or similar, in actual version?

jlambe commented 5 years ago

@nathanopereira It depends on what you're trying to do but you could setup a custom post type and then use the new Field::choice field to define a select field where your end-user can select the sales contact.

mikhaelr commented 3 years ago

Hello, any update on this ? The framework is awesome and I’m so excited to use it in a real project but the lack of a repeater/infinite field prevent me to do so, I’m so used to it in ACF, it’s just really convenient. Nonetheless, thanks for your great work !

ogorzalka commented 3 years ago

It would be a great addition 😎 ACF database schema is really ugly 🤢