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

Support for associative source in StringTagField #89

Open
jjjjjjjjjjjjjjjjjjjj opened this issue Jan 19, 2017 · 0 comments
Open

Support for associative source in StringTagField #89

jjjjjjjjjjjjjjjjjjjj opened this issue Jan 19, 2017 · 0 comments

Comments

@jjjjjjjjjjjjjjjjjjjj
Copy link

jjjjjjjjjjjjjjjjjjjj commented Jan 19, 2017

I want to do this:

$exampleField = StringTagField::create(
    'Pages',
    'Select one or more page types to include',
    [
        'Page' => 'Regular pages',
        'ImageGalleryPage' => 'Image gallery pages'
    ]
)->setCanCreate(false)->setShouldLazyLoad(false);

But the source array key will be disregarded when saving. Thoughts on this?

[edit: redacted solution that would break things]

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

No branches or pull requests

3 participants