承接 getherbie/plugin-simplesearch 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

getherbie/plugin-simplesearch

最新稳定版本:v2.0.0

Composer 安装命令:

composer require getherbie/plugin-simplesearch

包简介

SimpleSearch Plugin for Herbie.

README 文档

README

Simplesearch is a Herbie plugin that allows you to provide your website with a simple but useful search engine.

Installation

The plugin is installed with Composer.

$ composer require getherbie/plugin-simplesearch

After that, the plugin can be activated in the configuration file.

Configuration

The following options are available in the configuration file.

return [
    // a comma-separated list of plugins to be activated
    'enabledPlugins' => 'simplesearch',
    'plugins' => [        
        'simplesearch' => [
            'config' => [
                // path to twig form template
                'formTemplate' => '@plugin/simplesearch/templates/form.twig',
                // path to twig results template
                'resultsTemplate' => '@plugin/simplesearch/templates/results.twig',
                // use page cahe if global caching is enabled
                'usePageCache' => false,
            ],
        ],
    ],
];

Please note that the above configuration is only part of the overall configuration.

Page properties

With the page property no_search individual pages can be excluded from the search. The page properties for such a page look like this:

---
title: My page
no_search: true
---

A complete search page looks like this:

---
title: Search
cached: false
hidden: true
---

# Search

{{ simplesearch_form() }}

{{ simplesearch_results() }}

Demo

A live demo can be viewed at https://herbie.tebe.ch/search

统计信息

  • 总下载量: 4.52k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-12-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固