You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding singles works the same as any other section - Craft allows us to pass an array of handles to query->section, like so: query->section(['sectionHandle', 'sectionHandle'])
Then in your transformer you can check the element's section and parse the fields per section/single/channel
There's no way to do it dynamically? I knew about the hardcoded method you describe above but trying to avoid it to eliminate the need to have to add/remove new singles. Craft must have some means of querying for all singles as they list them in the cp.
Is there a way to add Craft 'singles' to an algolia index? Did I miss this in the documentation?
The text was updated successfully, but these errors were encountered: