大家好,
我想修改高级搜索功能。我声明自己不是程序员。
目前的高级搜索功能对我来说太多了,我想删除其中一些。我尝试使用 Discourse 主题创建器,但未能成功。
我找到了 HBS 代码并进行了修改,但现在无法将文件打包成 zip 以加载该组件。有人知道如何帮我吗?
这是我需要上传的代码:
{{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=""}}