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
Matrix integration? #2
Comments
All my EE projects so far have not required Matrix so I have yet to acquire a license. But if I ever get around to buying a copy I'll definitely take this into consideration. |
I've had a go at doing this myself but I've only got limited PHP skills and am running into an error: Unable to locate the model you have specified: vwm_secure_files_m. What's the best way to let you see the changes I've made? |
The best way would be to fork the project and push your changes to your repository. If you just have code from one or two files, you can create a gist |
I went for the second option as I only made a couple of minor mods to the fieldtype: https://gist.github.com/f6defbe5ee5a50b81805 |
Humm, I'm not really sure why it would be giving that error. You could try loading the model like so:
I kinda doubt that will do anything though. Also your The EE model loader is located in Does the code work outside of Matrix? |
Yeah, changing
I've updated the Gist with the latest code. And yes, what I had before was working OK for fields created outside Matrix. |
There really should be a way to do this without Maybe placing this in the constructor will work?
If you have any EE addons that have fieldtype components that need to access a database table you could look at their code to see what they are doing. I have been looking around, but have yet to come across any that use models. Most just put the SQL right in the fieldtype... |
Another feature that would be cool is if the fieldtype could work with Matrix too.
The text was updated successfully, but these errors were encountered: