MaximilianKohler
Well-known member
I'm trying to add
Since
I first went to
So I searched
or
But I cannot find the equivalent for
I've looked through all the
Display results as threads right below Search titles only in the main search box.Since
Display results as threads exists on the Advanced search page, I was thinking that it would be as simple as finding the lines of code in that template and copying them to the main search box template.I first went to
Search templates and input Search to find templates related to Search. But I could not find an instance of Display results as threads.So I searched
Phrases for Display results as threads and Search titles only and found search_titles_only and display_results_as_threads, and then searched Templates again for search_titles_only and display_results_as_threads. I found what appears to be the lines of code for Search titles only:
Code:
<ul class="inputList">
<li><xf:textbox type="search" name="keywords" value="{$input.keywords}" autofocus="autofocus" id="{$controlId}" /></li>
<xf:if is="$canTitleLimit">
<li>
<xf:checkbox standalone="true">
<xf:option name="c[title_only]" selected="{$input.c.title_only}">
<xf:label>
{{ phrase('search_titles_only') }}
<xf:if is="$xf.options.enableTagging">
<span tabindex="0" role="button"
data-xf-init="tooltip" data-trigger="hover focus click" title="{{ phrase('tags_will_also_be_searched')|for_attr }}">
<xf:fa icon="far fa-question-circle" class="u-muted u-smaller" />
</span>
</xf:if>
</xf:label>
</xf:option>
</xf:checkbox>
</li>
</xf:if>
</ul>
Code:
<!--[XF:search_menu:above_title_only]-->
<div class="menu-row">
<xf:checkbox standalone="true">
<xf:option name="c[title_only]">
<xf:label>
{{ phrase('search_titles_only') }}
<xf:if is="$xf.options.enableTagging">
<span tabindex="0" role="button"
data-xf-init="tooltip" data-trigger="hover focus click" title="{{ phrase('tags_will_also_be_searched')|for_attr }}">
<xf:fa icon="far fa-question-circle" class="u-muted u-smaller" />
</span>
</xf:if>
</xf:label>
</xf:option>
</xf:checkbox>
</div>
But I cannot find the equivalent for
Display results as threads.I've looked through all the
Tips and guides for XF 2.x and didn't find any tutorial for this.