We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
would be good if we could get a Group field in the library
Group
as far as I know it just prefixes groupname_ so if eg my Group is hero and my first field in the repeater is image then the field becomes hero_image
groupname_
hero
image
hero_image
I had a go at adapting the Repeater field and it seemed to work using eg
protected function fetchPostsMeta($fieldName, $post) { .... $builder->where(function ($query) use ($fieldName) { $query->orWhere('meta_key', 'REGEXP', "^{$fieldName}_[a-z0-9]*$"); });
protected function fetchFields ($fieldName, Builder $builder) { ... $name = str_replace($this->name."_", '', $name); $fields[$name] = $field->get();
I hope this of some use. It's mostly trial and error, I'm not quite sure how the whole thing fits together.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
would be good if we could get a
Group
field in the libraryas far as I know it just prefixes
groupname_
so if eg my Group ishero
and my first field in the repeater isimage
then the field becomeshero_image
I had a go at adapting the Repeater field and it seemed to work using eg
I hope this of some use. It's mostly trial and error, I'm not quite sure how the whole thing fits together.
The text was updated successfully, but these errors were encountered: