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

How do you implement this extension? #3

Open
muppsy007 opened this issue Nov 10, 2019 · 0 comments
Open

How do you implement this extension? #3

muppsy007 opened this issue Nov 10, 2019 · 0 comments

Comments

@muppsy007
Copy link

muppsy007 commented Nov 10, 2019

Hi there. Looks like a pretty new extension. Just wondering how it's used? It looks like a DataObject so I have added it as a $has_one.

private static $has_one = array(
     'Video' => YoutubeEmbed::class
);

But then I take it you have to add it to getCMSFields()? But I can see a field type in the package. Is this more for a has_many relationship where you have a gridfield?

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

1 participant