Jump to content

Featured Replies

Posted

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.

 

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:

 

 

  • Author

Wooo

Thank you so much.

I think Invision should re-think their own doc....

Thank you again.

I tried the marketplace but didn't find. I seem to remember one of this there.

  • Community Expert

Glad you have what you need there 🙂

  • 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.

 

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.

Recently Browsing 0

  • No registered users viewing this page.