Started on Monday, July 30th, 2018 by Noahj Champion, has 4 messages and has been resolved.
The last message was posted by Noahj Champion 4 years ago.
Hi!
It just seems that some repeater methods are missing, ie:
Fatal error: Uncaught Error: Call to undefined method Ultimate_Fields\Field\Repeater::___()
I go errors for the following and also searched the code of the Repeater class and it just seems these options are not there, but they are for using them in the UF UI, but not the PHP API.
->set_min()
->set_max()
->set_icon()
->set_edit_mode()
->set_title_template()
However, it looks as maybe it just needs updated because...
->set_min()
->set_max()
Do exist but instead are...
->set_minimum()
->set_maximum()
Hi.
I figured this out.
From the docs I think it can get a little confusing, but I figured it out.
I have some sample codes I will add/share to help other devs get started.
Related to this issue, I think the main starting point is to note that The Repeater works off of 2 Classes, Field::create()
and Repeater_Group::create()
.
And deciphering which methods went with which classes was the issue, but I've sorted through it all now and all is working well.
Overall I think it is really nice! and Robust.
We can create a very extensive repeater field as a simple object and essentially add it into any other array of fields.
Though perhaps, the ->set_minimum()->set_maximum()
should still be formed to the common method language in other places as ->set_min()->set_max()
?