I am using K2 for a football club website, and I am trying to create a fixtures/results page.
Can anyone point me in the right direction of how to make the title (which I have replaced with "Match Report") only appear when the current date becomes more than the an extra field set to date?
For example, while all fixtures will show, the "Match Report" (item title) link for a game on the 12.12.2012 will only appear after the a value set in a "Date" extra field?
You can see my table layout here:
www.walthamforest-fc.co.uk/matches/new-fixtures.html
This is the code I have at the moment
<?php if ($this->item->strtotime('extrafields[20]')) > strtotime($database_date): ?>
<a href="<?php echo $this->item->link; ?>">
<?php echo "Match Report"; ?>
</a>
<?php else: ?>
<?php echo $this->item->title; ?>
<?php endif; ?>
Where extrafield 20 is the date.
Many thanks