concrete5: how to define a new model and its controllers and views

158 views Asked by At

I am newbie to concrete5 CMS, I want to create a table named "books" which contains some books info, and I want to develop a CRUD controller of this table "Create, Update, Delete", then display it at the home page.

How I can do that? are there any useful tutorials or examples?

1

There are 1 answers

0
Ashley Ohlrogge On

Instead of building a whole CRUD tool for this you could just create a Page Template, Page Type, some Page Attributes (the book information), and then a couple of blocks and custom templates to display your information.

So you would create a Page Type - Book, a Page Tempalate - Book which uses only the Page Type of Book. You would associate your Book Attributes to this on the Composer Form, and then use your custom blocks and templates for front end display.