auto_path not parsing
Hello,
I'm trying to set up a simple search and am experiencing issues. When using page_url, everything is fine. When using {auto_path}, the auto_path tag does not parse at all (see image). H'ere my results template:
{exp:low_search:results limit="10"}
{if count == 1}
<div id="search-results">
<h2>Here's what we found for your search of "{low_search_keywords}"</h2><br />
<ol>
{/if}
<li>
{if page_url}<a class="search_title" href="{page_url}">Page: {title}</a>{if:else}<a class="search_title" href="{auto_path}">Entry: {title}</a>{/if}
<br />
<a class="search_url" href="{if page_url}{page_url}{if:else}{auto_path}{/if}"><small>{if page_url}{page_url}{if:else}{auto_path}{/if}</small></a>
<br />
{low_search_excerpt}
</li>
{if count == total_results}
</ol>
{paginate}<div class="paging">{pagination_links}</div>{/paginate}
</div>
{/if}
{if no_results}No search results{/if}
{/exp:low_search:results}
Replies
Low 16 Sep 2014 15:42
The Results tag builds on the Channel Entries tag, which doesn't support the {auto_path} variable. However, you can use {comment_url_title_auto_path} instead.
Joshua McLemore 16 Sep 2014 15:48
Ah, that fixed it. I had to go in and set the comment path in the channels (we don't have commenting and so that wasn't set up already) but now it is working as expected.
Thank you!