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

Relationship Field: one2one and one2many #40

Open
doup opened this Issue Jun 16, 2016 · 4 comments

Comments

Projects
None yet
5 participants
@doup
Contributor

doup commented Jun 16, 2016

Right now relationship field works as one2many field even when using set_max(1). I could use a select field and populate it with the CPT that I want to link… but it's not as convenient as the relationship field.

Few ideas:

  • make relationship field act as one2one when set_max(1). Also it could show only a dropdown instead of the two lists.
  • create another field for one2one relationships.

Ideally it should return [id1, id2, …] instead of [[id1], [id2], …].

@bignall

This comment has been minimized.

Show comment
Hide comment
@bignall

bignall Sep 25, 2016

I second this request.

bignall commented Sep 25, 2016

I second this request.

@yveveke

This comment has been minimized.

Show comment
Hide comment
@yveveke

yveveke Oct 17, 2016

Same, I second this request

yveveke commented Oct 17, 2016

Same, I second this request

@wkirby

This comment has been minimized.

Show comment
Hide comment
@wkirby

wkirby Mar 3, 2017

This would be nice, in the meantime I've made some custom field types that should work. You can find them here: https://gist.github.com/wkirby/6ad67c0feb58ba7171cb2fe9a091985e

wkirby commented Mar 3, 2017

This would be nice, in the meantime I've made some custom field types that should work. You can find them here: https://gist.github.com/wkirby/6ad67c0feb58ba7171cb2fe9a091985e

@wkirby

This comment has been minimized.

Show comment
Hide comment
@wkirby

wkirby Mar 5, 2017

Since yesterday I've extracted the fields from that gist, along with some other standard ones we at Apsis, and bundled them into a plugin: https://github.com/apsislabs/carbon-fields-extensions

wkirby commented Mar 5, 2017

Since yesterday I've extracted the fields from that gist, along with some other standard ones we at Apsis, and bundled them into a plugin: https://github.com/apsislabs/carbon-fields-extensions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment