pods-framework / pods-beaver-builder-themer-add-on

Integration of Beaver Themer plugin for WordPress (https://pods.io/beaver-themer/)
https://wordpress.org/plugins/pods-beaver-builder-themer-add-on/
GNU General Public License v2.0
35 stars 6 forks source link

Add URL support for file / image / video field type #84

Open nicdford opened 6 years ago

nicdford commented 6 years ago

Issue Overview

Currently, from what I can tell, only the website/url field is supported when trying to create a connection between a BB url field and a field in pods that returns a url.

Expected Behavior

It would be nice to pull a file URL, for example, from the file upload field when you go to connect something to a BB URL in a module. In my case, created a "download this pdf now" button.

Current Behavior

Currently, the workaround is to use Pods magic tags which allows you to enter any field in pods as a connection.

Possible Solution

Add support for file / image / video field type that may return a URL. I was thinking there might be other fields that this same treatment could benefit, but now looking at the differnet field types, I think this is the only other use-case I can think of for needing this treatment.

Steps to Reproduce (for bugs)

  1. Create file / image / video field in pods
  2. Go to connect a URL field in a BB module to this field in pods
jimtrue commented 6 years ago

Isn't this a problem with our existing File/Upload/Image fields in Pods? We don't allow creation from URL, either.

quasel commented 6 years ago

it's about the output - into field connections that allow only urls - I could add all "file" types to field connection as a URL Output ... e.g the ACF integration allows you to enter field name + output type

Would remove the need to use the magic tag option! file_type_field._src