D
D
DBarkoVW2018-11-20 19:43:39
Yii
DBarkoVW, 2018-11-20 19:43:39

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

3 answer(s)
A
Alexander Pushkarev, 2018-11-20
@AXP-dev

Yii2 is not about this at all. Take WP + ACF, half day business

M
morricone85, 2018-11-20
@morricone85

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.

M
Maxim Timofeev, 2018-11-20
@webinar

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 question

Ask a Question

731 491 924 answers to any question