-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
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
New Field Type: Address / Map #3634
base: main
Are you sure you want to change the base?
Conversation
This field is not ready for full review yet, maybe remove that label. I'll put the same question here for clarity: @sc0ttkclark @pglewis The default address field would be quite similar to the GF address field this way (just regular fields and select boxes) |
Still needs review of PR and that question |
- Add address in backend - Display address in frontend with HTML markup (config with format) - Custom HTML markup format possible with magic tags - Optionally add schema.org microdata
Currently only handles PodsAdmin fields Requires PR: #3711
Also adds classes for use in front-end prepended with `pods-address`
- All maps additions are now in the component folder for consistency - Main component handles default (global) calls and redirects them to the right provider class - Field UI: Use the localization JS object and extend this for more usages like ajax calls to the main component for geodata - Field UI: Geodata lookup when typing a new address - Provider: API key is recently required for Google Maps
- Bring back "lookup" button, seems like a better approach - Validate the view type that this map field is appended to
Yes, that's how I arrived here, actually. We can close that other thread. WP All Import is working fantastically, but when I try to map all those individual fields to the one "address" field for the pods-maps plugin/add-on, no data is received. Is there a simple solution that I'm missing? |
Sounds like it might be a 'structure' question (ie how to combine those fields into an array to be supported by the Map Field. @JoryHogeveen might be able to give some insight on this one. I'll close the other ticket: https://wordpress.org/support/topic/importing-to-address-field/#post-11139966 |
@bwdgraphics Also, I think it's better to create a new ticket for topics like this. Let's keep this thread purely for development purposes. |
@tiptronic Since I couldn't wait for this to be actually finished and integrated into Pods I created a plugin to work with (actually 2 plugins, the address field and the maps component). |
@JoryHogeveen I am not really a PHP Pro, but I will definitely have a look at it asap, as I can definitively use this here and there. Thanks for sharing! |
we run into issues with this in pods 2.8. This helps a little |
Patched from https://github.com/pods-framework/pods-address-maps
#657
Bringing over PR from #3623
Address field type
{{address_tag}}
)Maps component
Backend UI
address
orfree-form
display is selectedFrontend UI
get_post_meta
, possible workaround for this?display()
multiple timesAPI
Providers
Google Maps API handler (priority)
Display
file
not working in the field edit tab @sc0ttkclark )General
Future tasks
Structure
Other API integrations