AndyB
Well-known member
In my Similar threads add-on, I'm able to show the thread title prefix by doing this:
and in the template I have:
However I'm not able to do the same with my Calendar add-on.
and in the template I have:
I get the following error message when I view the calendar:
What do I need to do?
Thank you.
PHP:
$finder = \XF::finder('XF:Thread');
$similarThreads = $finder
->whereOr($conditions)
->order('post_date', 'DESC')
->fetch();
and in the template I have:
Code:
<xf:cell href="{{ link('threads/', $thread) }}" target="_blank">{{ prefix('thread', $thread.prefix_id, 'html', '') }} {$thread.title}</xf:cell>
However I'm not able to do the same with my Calendar add-on.
PHP:
$finder = \XF::finder('Andy\Calendar:Calendar');
$threads = $finder
->with('Thread')
->where('calendar_date', 'LIKE', $finder->escapeLike($yearMonth, '%?%'))
->fetch();
and in the template I have:
Code:
<a href="{{ prefix('thread', $thread.prefix_id, 'html', '') }} {{ link('threads/', $thread) }}" >{$thread.Thread.title}</a>
I get the following error message when I view the calendar:
What do I need to do?
Thank you.