Answer the question
In order to leave comments, you need to log in
How to implement landing page management in Yii2?
Hello.
I ask for advice. There is a one-page (Landing Page) divided into 7-9 separate blocks of content, displayed one after another within one html-page.
If I store the blocks in the database, for example: id, title, subtitle, bg, js, content, sort, etc.
1. How can I implement template management for each block so that I can change the design, connect js, edit the block layout, through the admin panel?
Answer the question
In order to leave comments, you need to log in
Yii2 is not about this at all. Take WP + ACF, half day business
1) design, js - edit directly through files;
2) store blocks in the database: eg. id, caption, content, position, where position - position;
content - block content;
3) You can use the wysiwyg editor to edit the content.
This is, in short.
I would make the entity a block, and let's call the related entities part
Accordingly, there will be something like
Block: id order name
Part: id block_id content
At the same time, some blocks can be separate entities, for example, our advantages can look like: id title content icon order and etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question