Skip to content
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

Adding new field types #590

Open
szepeviktor opened this issue Apr 3, 2016 · 4 comments
Open

Adding new field types #590

szepeviktor opened this issue Apr 3, 2016 · 4 comments

Comments

@szepeviktor
Copy link
Collaborator

Is there an example on adding new field types?

Are there plans to make field types pluggable?

@westonruter
Copy link
Contributor

If I recall correctly from chatting with @mattheu, the current fields schema used in shortcake is a bit of a one off implementation of a fields API since the actual Fields API isn't available yet. I seem to recall him mentioning that custom fields could be added in the current setup, but it may require some low-level integration. In lieu of the Fields API, we also talked about there being a way to integrate Customizer controls as Shortcake fields, making possible a great synergy between widget forms and shortcodes: #585. This will be a longer-term goal.

@szepeviktor
Copy link
Collaborator Author

@westonruter Thank you.
For me - and maybe for others too - custom fields, combined fields (e.g. image with a link) and repeatable fields would make Shortcake production ready.

@ogdsgn
Copy link

ogdsgn commented May 6, 2016

Totally agree - additional field types, custom fields, combined fields, and repeats would be awesome.

Would it be crazy to propose implementing something like CMB2?
https://github.com/WebDevStudios/CMB2

or ACF?
https://wordpress.org/plugins/advanced-custom-fields/

I'm not a programmer, so I don't know anything about the actual implementation - just a power user that is looking for great workflows, and really digging what shortcake brings to the table.

cheers.

@MickeyKay
Copy link

MickeyKay commented Apr 24, 2017

@westonruter and/or the rest of the team - any updates on 1. whether it is currently possible to add custom field types within the current Shortcake setup, and 2. documentation on how to do so? I'm digging into past issues and the code itself to try and discover a basic yes/no answer to 1., however I'm having a surprisingly tough time. I think it'd be great to ensure that the wiki covers this topic, either with implementation details, or a simple "this is currently not possible for reasons X, Y, and Z." Thanks!

Also, I understand if this type of feature request is currently on pause due to the pending editor overhaul that's on its way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants