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

Allow extension of existing model #4

Open
bmcclure opened this issue Sep 12, 2011 · 1 comment
Open

Allow extension of existing model #4

bmcclure opened this issue Sep 12, 2011 · 1 comment

Comments

@bmcclure
Copy link

I'm not sure exactly how it would be implemented yet, so I thought I'd ask here and get your opinion.

I would like to be able to extend the BlogPost model and use that instead of the default one inside the plugin. This is because I'd like to be able to store multiple images with each blog post using the davidpersson's 'Media' plugin (which I'm working on converting to cake 2.0).

Naturally a dependence on the Media plugin to use the Blog plugin wouldn't necessarily be a good thing, but being able to use custom fields, validation, methods, and behaviors for the BlogPost model would be an important feature for many use cases.

Not sure if you have any ideas on how that could be achieved, or if you have any other ideas in mind for allowing custom field types, especially image attachments.

Thanks!

Ben

@davidyell
Copy link

I know it's a year ago, but this plugin supports CakePHP 2.x
https://github.com/josegonzalez/upload

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

2 participants