Skip to content
Discussion options

You must be logged in to vote

Try this in your Detail.html template:

<f:if condition="{event.enddate -> f:format.date(format: 'U')} < {f:format.date(date: 'now', format: 'U')}">
        <e:metaTag name="robots" content="noindex,nofollow" />
</f:if>

The condition compared the unix timestamp of the enddate of the event with the current unix timestamp and if the event enddate is reached, the additional meta tag is rendered.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wilbv
Comment options

@derhansen
Comment options

Answer selected by wilbv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants