A
A
Alexey Verkhovtsev2016-11-13 20:10:48
JavaScript
Alexey Verkhovtsev, 2016-11-13 20:10:48

What is the best way to edit data on a page?

Hello everyone, the task is this, you need to be able to edit pages from the admin panel, but the problem is that the text on the page does not go sequentially, but in blocks, if it went sequentially (like news), then I would throw it into the table and that's it, but here it is not clear how to implement it better, does anyone have any ideas? Blocks can be arranged randomly. Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Risent Veber, 2016-11-14
@risentveber

In a similar situation, I did - a block with parameters: the page on which to show and the serial number.

D
dmitriy, 2016-11-14
@dmitriylanets

two modules, one forms a page and allows you to edit html, the second is responsible for forming a block by id and is also edited as html, we define the rule for using blocks in a page, for example, according to a template

{CONTENTPART|text1}<br/> {CONTENTPART|text2}<br/> {CONTENTPART|text3}

the module that displays the page, analyzing the content, finding snippets, connects the block module with the desired id and replaces the content with its response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question