0

I want to make each row showed in the image clickeable: enter image description here

The view block have each element hidden and unified in Custom text block as is:

<a href="{{ view_node }}">
{{ field_images }}
<span class="fecha">{{ created }}</span>
<span class="title">{{ title }}</span></a>

The result is that link is only clickeable from elements but not for the entire row:

Link is only clickeable from elements, not entire row

I'm using a custom twig template and showing two views in this block:

{% extends "block.html.twig" %}
{% block content %}
  <ul class="nav nav-tabs" role="tablist">
    <li class="active" role="presentation"><a aria-controls="populares" data-toggle="tab" href="#populares" role="tab">Populares</a></li>
    <li role="presentation"><a aria-controls="recientes" data-toggle="tab" href="#recientes" role="tab">Recientes</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane fade in active" id="populares" role="tabpanel">
{{ tab2 }}
</div>
<div class="tab-pane fade" id="recientes" role="tabpanel">
{{ tab1 }}
</div>
</div>
{% endblock %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.