Hi everyone,
I would like to modify the advanced search. I state that I am not a programmer.
Advanced search currently has too many features for my use and I would like to delete some of them. I tried using the discourse theme-creator but failed in my intent.
I found the HBS code and made the changes but now I can’t organize the zip file to load the component, does anyone know how to help me?
this is the code I need to upload:
{{plugin-outlet name="advanced-search-options-above" args=(hash searchedTerms=searchedTerms onChangeSearchedTermField=onChangeSearchedTermField) tagName=""}}
<div class="container advanced-search-posted-by-group">
<div class="control-group pull-left">
<label class="control-label" for="search-in-category">{{i18n "search.advanced.in_category.label"}}</label>
<div class="controls">
{{search-advanced-category-chooser
id="search-in-category"
value=searchedTerms.category.id
onChange=(action "onChangeSearchTermForCategory")
}}
</div>
</div>
</div>
{{#if siteSettings.tagging_enabled}}
<div class="container advanced-search-tag-group">
<div class="control-group">
<label class="control-label" for="search-with-tags">{{i18n "search.advanced.with_tags.label"}}</label>
<div class="controls">
{{tag-chooser
id="search-with-tags"
tags=searchedTerms.tags
allowCreate=false
everyTag=true
unlimitedTagCount=true
onChange=(action "onChangeSearchTermForTags")
}}
<section class="field">
<label>
{{input
type="checkbox"
class="all-tags"
checked=searchedTerms.special.all_tags
click=(action "onChangeSearchTermForAllTags" value="target.checked")
}}
{{i18n "search.advanced.filters.all_tags"}}
</label>
</section>
</div>
</div>
</div>
{{/if}}
{{plugin-outlet name="advanced-search-options-below" args=(hash searchedTerms=searchedTerms onChangeSearchedTermField=onChangeSearchedTermField) tagName=""}}