G
G
GeekFromUa2015-02-11 11:28:48
CMS
GeekFromUa, 2015-02-11 11:28:48

How to create nodes inside another node in drupal?

The bottom line is that, for example, I have a node (some kind of event) and if these events will occur in different places, at different times. That is, there is a node with a description of the event, photos, details ... and sub-nodes with addresses and time. Or maybe there is another way to implement it?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
archelon, 2015-02-11
@petriychuk

https://www.drupal.org/project/entityreference
create a field with a link to another node.
in the display settings specify the rendered entity

A
Alexey Yakhnenko, 2015-02-11
@ayahnenko

The title of the question somewhat contradicts its content.

B
Boris Korobkov, 2017-10-03
@BorisKorobkov

Comparing entity_id with 5 values, post_type with 12. A total of 60 comparisons per entry! The optimizer will actually make fewer comparisons, but it's still very inefficient.
It is necessary to understand in detail the nuances and change the business logic.

M
Maxim Fedorov, 2017-10-03
@qonand

just figure out how indexes are arranged in MySQL and everything will fall into place, for example, here is an article about the structure of indexes

V
Vyacheslav Uspensky, 2017-10-03
@Kwisatz

To get started, throw MySQL in the trash.
If this is the only type of query on the table, make a composite index.
And besides, you need to watch explain

D
Danil Sapegin, 2017-10-03
@ynblpb_spb

FORCE INDEX(`index_name`)
try adding to query
https://dev.mysql.com/doc/refman/5.7/en/index-hint...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question