Collection and relate tag? How to display the material?


I only get acquainted with Statamic

I have only one Collection - blog.

I need to note additional information from the same Collection on the internal pages of the material in the slide bar.

All is well and the marked material is output. BUT for example, if no entries are marked, then it should also be empty. And for some reason, the name of the material is displayed for me.

How to put a check? If the record is not marked then do not output anything?

{{ partial:header }} <div class="row"> <div class="col-8"> <h1>{{ title }}</h1> <p>{{ text }}</p> </div> <div class="col-4"> <h1>Related Materials</h1> {{ relate:add }} <p><a href="{{ url }}">{{ title }}</a></p> {{ /relate:add }} </div> </div> {{ partial:footer }}

Image of Yaktocat

>>>>>>> Unanswered <<<<<<<
0 Replies