Raúl Anguita Posted February 27, 2023 Posted February 27, 2023 Hello, I'm a retail developer. I'm not professional, just a hobbyist one. I worked before with Wordpress and Processwire and I'm used to work with PHP. I bought a week ago Invision Community and I'm trying to create a custom item type. I just need to create a content item with Title and Description (no categories or taxonomies implied) All examples I saw in doc was to create the source (model) but the documentation provided for the controller is (on my own view) useless or does not provide the info I need. There is any blank example or hello world with the CRUD to know how the Invision engine works? Thank you.
Adriano Faria Posted February 27, 2023 Posted February 27, 2023 4 minutes ago, Raúl Anguita said: All examples I saw in doc was to create the source (model) but the documentation provided for the controller is (on my own view) useless or does not provide the info I need. The best way to do it is by viewing other examples. This may be outdated in some ways due to the time it was posted but the main idea is there:
Raúl Anguita Posted February 27, 2023 Author Posted February 27, 2023 Wooo Thank you so much. I think Invision should re-think their own doc.... Thank you again.
Daniel F Posted February 27, 2023 Posted February 27, 2023 We have a Hello World example in our docs Adriano Faria 1
Adriano Faria Posted February 27, 2023 Posted February 27, 2023 I tried the marketplace but didn't find. I seem to remember one of this there.
Raúl Anguita Posted February 27, 2023 Author Posted February 27, 2023 28 minutes ago, Daniel F said: We have a Hello World example in our docs This example is not a CRUD one. In my point of view, your docs fails to explain all the methods implied on that. G17 Media 1
Adriano Faria Posted February 27, 2023 Posted February 27, 2023 12 minutes ago, Raúl Anguita said: This example is not a CRUD one. For a classic content item type, you just create the item, add the required methods, the form via formElements() and treat what's posted via formatFormValues() and/or processForm() method and you're done. The framework will do the rest.
Recommended Posts