For my CasePage.php class, I associate multiple services (ServicePage.php) via a $many_many TreeMultiselectField. On my case study pages, I've got the associated services being called in like so:
<% if $Services %>
<li>
<% loop $Services %>
<a href="$Link" title="$Title">$Title</a>
<% end_loop %>
</li>
However, I now want to call a featured case study (CasePage) onto my Service pages (ServicePage) based on this relationship i.e. only a case study which has this service page associated with it (and ideally the most recently added case study).
Can someone please advise how I output this in my CasePage.ss template? Do I need a controller function in place first?