Hi all,
I have a problem with the Super Search module: I am trying to link the title of my search results to the relevant article, but I can’t figure out how to display the appropriate category in the URL. I have tried different variables like {path="template_group/template"} or {auto_path} and others but no luck!
here’s the search results page code:
<div id="content">
{exp:super_search:results allow_repeats="no" orderby="date" paginate="bottom" limit="10"}
<h3><a href="http://{auto_path}">{title}</a></h3>
<p> {if excerpt}{excerpt}{if:else}No excerpt available. Either the channel does not have the except field configured correctly, or the designated field contains no value for this entry.{/if}<br />
<hr ><br />
{if super_search_no_results}<br />
Sorry, no results matched the search terms you provided. If you continue to have trouble finding results, make sure:<br />
<ul><br />
<li>that Channel entries exist for your site</li><br />
<li>that the field you're searching on (if applicable) exists for your site</li><br />
<li>that the Fields you wish to be searched on are marked as searchable for the custom field preference</li><br />
<li>you are not searching on closed entries, future entries, expired entries, etc. Just like the Channel:Entries loop, Super Search respects those settings as well. Be sure to include the necessary parameters on the Results loop for this template.</li><br />
</ul><br />
{/if}<br />
{paginate}<br />
Page {current_page} of {total_pages} pages. {pagination_links}<br />
{/paginate}<br />
{/exp:super_search:results}<br />
</div><!-- end content -->Here’s the link to my website: http://www.efc.ie/ the Search Box is top right. Say for example I search “Banking”, here’s what I get: http://www.efc.ie/search/results/search&keywords=banking/
If you click on the first link, the path is not correct. The correct path should be:
http://www.efc.ie/what/section_legal/category/banking
So it should include the relevant template and category.
What am I doing wrong? What code should I put?
Thank you in advance for your help!!!
L