R
R
Reisor2018-07-20 17:44:42
CMS
Reisor, 2018-07-20 17:44:42

The link of the announcement (teaser) to the full view of the content in Drupal8 does not work?

Site on Drupal 8, edited the twig template, in the views I display FORMAT
Format:Unformatted list | Settings
Show: Content |
Announcement - I don’t use the fields, since there are several photos and only one photo is needed in the announcement, but it shows everything sorry, not very good at this
<_div class="views-row views-row">
<_div class="title">
<_h3>{{ content.title }}<_/h3><_/div>

<+ _div class="phone">{{ content.field_phone }}<_/h3><_/div>
<_div class="block1">
<_div class="foto"> {{ content.
And yet, if anyone understands twigs - give your contacts!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
antiden, 2018-08-16
@donda

1. To control the output of the image in the Announcement of the display in the image field, the gear, there must be a ui field put a number in it, for example 1 to display the first image
2. For comfortable work with twig, enable the development mode in Drupal (disable caching and enable debug themes ), install the vardumper module and in the templates with {{ vardumper() }} look at the content of the output

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question