承接 iqnection-pages/searchresultspage 相关项目开发

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

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

iqnection-pages/searchresultspage

最新稳定版本:2.1.3

Composer 安装命令:

composer require iqnection-pages/searchresultspage

包简介

SilverStripe Search Page

README 文档

README

Searches all pages and data objects (that have a proper index)

All DataObject subclasses that include a fulltext index named "SearchFields" will be searched Specify the database columns you want to be searched as follows:

private static $indexes = [
	'SearchFields' => [
		'type' => 'fulltext',
		'columns' => ['MyField1', 'MyField2'],
	]
];

You'll also need to set the tabel engine as follows

private static $create_table_options = [
	MySQLSchemaManager::ID => 'ENGINE=MyISAM'
];

Build your search form setting the search input with the name "s", and post to the search page action "results"

<form method="get" action="{$SearchPage.Link(results)}">
    <input type="search" name="s" value="" />
    <input type="submit" value="Search" />
</form>

see: https://docs.silverstripe.org/en/4/developer_guides/search/fulltextsearch/ for more information on full text search

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-09-24