定制 mmx/search 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mmx/search

最新稳定版本:1.3.1

Composer 安装命令:

composer require mmx/search

包简介

Convenient search for MODX

README 文档

README

This extra is part of MMX initiative - the Modern MODX approach.

Dependencies

This package requires mmxDatabase to work with MODX database using Eloquent models.

The mmx/database dependency will be downloaded automatically by Composer.

Prepare

This package can be installed only with Composer.

If you are still not using Composer with MODX 3, just download the composer.json of your version:

cd /to/modx/root/
wget https://raw.githubusercontent.com/modxcms/revolution/v3.0.5-pl/composer.json

Install

composer require mmx/search --update-no-dev
composer exec mmx-search install

Update

composer update mmx/search --no-dev
composer exec mmx-search install

Remove

composer exec mmx-search remove
composer remove mmx/search

If you don't want to use mmxDatabase, you can also remove it.

composer exec mmx-database remove && composer remove mmx/database

How to use

  1. Open mmxSearch extra section in manager.
  2. Create new search index with unique title, for example Test.
  3. Index resource with refresh button.
  4. Call mmxSearch snippet with specifying the title of index:
[[!mmxSearch?index=`test`]]

You can specify tplBtn parameter with chunk for search button. Another parameter noCSS will disable loading of built styles.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-02