I want to show a link when a node is published.
I added the Content: Publishing status field and hid it. In global custom text, I added the following code.
{% if status == 0 %}
<div class="apply_job"><a href="/appy-job" target="_blank">Apply</a></div>
{% endif %}
The replacement pattern for the published status is {{ status }}
, which shows 0 or 1.
I am using Drupal 8.2.0.
Can anybody help me to make this work?