Hi Gavin,
Have you just upgraded to v15 recently?
Old style best bets were actually removed in v15 - when you create a "best bet" in v15 it is actually creating a special curator rule that has the same effect as what the former best bets feature did. If you upgraded to v15 you need to update your templates to handle the new source for best bets (unfortunately this isn't something that could not be automatically upgraded).
Try updating your Freemarker snippet to the following (this is from the default template in v15 and it handles both old best bets (from best_best.cfg
) and new best bets (from curator.json
):
<#if (response.resultPacket.bestBets)!?size > 0 || curatorAdvertPresent >
<ol id="search-best-bets" class="list-unstyled">
<#-- Curator exhibits -->
<#list response.curator.exhibits as exhibit>
<#if exhibit.titleHtml?? && exhibit.linkUrl??>
<li class="alert alert-warning">
<h4><a href="${exhibit.linkUrl}"><@s.boldicize><#noescape>${exhibit.titleHtml}</#noescape></@s.boldicize></a></h4>
<#if exhibit.displayUrl??><cite class="text-success">${exhibit.displayUrl}</cite></#if>
<#if exhibit.descriptionHtml??><p><@s.boldicize><#noescape>${exhibit.descriptionHtml}</#noescape></@s.boldicize></p></#if>
</li>
</#if>
</#list>
<#-- Old-style best bets -->
<@s.BestBets>
<li class="alert alert-warning">
<#if s.bb.title??><h4><a href="${s.bb.clickTrackingUrl}"><@s.boldicize>${s.bb.title}</@s.boldicize></a></h4></#if>
<#if s.bb.title??><cite class="text-success">${s.bb.link}</cite></#if>
<#if s.bb.description??><p><@s.boldicize><#noescape>${s.bb.description}</#noescape></@s.boldicize></p></#if>
<#if ! s.bb.title??><p><strong>${s.bb.trigger}:</strong> <a href="${s.bb.link}">${s.bb.link}</a></#if>
</li>
</@s.BestBets>
</ol>
</#if>
regards,
Peter