Jump to content

Recommended Posts

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.

Posted
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:

 

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...