Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 27, 20232 yr 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.
February 27, 20232 yr 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:
February 27, 20232 yr Author Wooo Thank you so much. I think Invision should re-think their own doc.... Thank you again.
February 27, 20232 yr Author 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.
February 27, 20232 yr 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.