composedcreative/expandedsearch
Composer 安装命令:
composer require composedcreative/expandedsearch
包简介
Craft CMS search results with expanded meta data including the matched field, matched value and related values for certain field types
README 文档
README
Installation
composer require composed/expandedsearch
Example
In your search results template
{% set expandedResults = craft.expandedSearch.search(query) %}
{% for result in expandedResults %}
<strong data-field="{{result.matchedField}}">{{result.entry.title}}</strong><br>
<p>{{result.matchedValue}}</p>
<a href="{{result.entry.url}}">{{result.entry.url}}</a>
{% else %}
<p>Sorry, no results for {{query}}.</p>
{% endfor %}
Roadmap
- Improve documentation
- Add handling for more non-scalar field types
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-06-02