R
R
Roman2019-02-21 23:49:30
Drupal
Roman, 2019-02-21 23:49:30

Drupal 8, how to display data from the database on a specific page?

It is required on a certain page to receive data from the user, connect to the database and display the data.
How to implement it?
In terms of how consistent it is (just started learning Drupal).
It is required to create a module, create a block with the module, put the block in the desired region and register the desired page (I wrote this as an example of actions).
Thanks for the clarification

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
afi13, 2019-02-22
@gagablik

Make a module, create a class with a form and the necessary logic for saving data to the database, declare a route in which to specify the desired form. Or make a block in which you display the desired form. Or use a ready-made module for example webform. In general, there are many options, but the question is too general.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question