M
M
Mikhail Petrov2017-05-15 10:11:44
Drupal
Mikhail Petrov, 2017-05-15 10:11:44

How to set an id for each list element in a View (Drupal 8)?

There is a View of type Block, in which a list of taxonomy dictionary terms is displayed in the field. How to assign a unique id to each list item?
PS Needed for an interactive map with anchor links within one page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2017-05-31
@kostya_vtomske

You add a new field to the Tid view and hide it.
The field termname (overwrite) the result of the output and wrap the term id there :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question