Answer the question
In order to leave comments, you need to log in
How to process and display your own data in CMS?
For example, I have a muscle base where several thousand records are stored. What exactly is stored in the database is not important. Let it be news and comments on them.
The task is to display content to the user.
I understand how to implement it on any MVC framework. But how is this implemented using cms?
Do you need to write your own plugin for cms (download an existing one) or is it implemented without a single line of code?
Answer the question
In order to leave comments, you need to log in
Drupal uses the concept of entities, you can declare your own entities with hook_entity_info(), describe fields in a table, behavior logic, etc. Here is an example .
Use a code generator to generate crud. For example, the yii2 framework has a built-in code generator. Based on the table in the database, it will make up several pages for displaying all the data, a separate entity, editing and deleting a separate entity.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question