承接 wikifab/explore 相关项目开发

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

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

wikifab/explore

Composer 安装命令:

composer require wikifab/explore

包简介

README 文档

README

explore Page :

Navigate to the page 'Spécial:WfExplore' to see the full explore page

explore Query :

'exploreQuery' function just display a list of tutorials, accordint to a semantic query

1st param is the query, the second param (optional) is the number limite of results to display. other named parameters can be set :

  • sort : field to use to sort results
  • limit : number of result to display
  • layout : layout to use (see layout config)

Ex : {{#exploreQuery: [[area::Électronique]] | 8}} {{#exploreQuery: [[area::Électronique]] | sort=editdate|limit=8}} {{#exploreQuery: [[area::Électronique]] | sort=editdate|limit=8| layout=event}}

displayExplore function

to display explorer in a page, insert the function displayExplore : {{#displayExplore: params}}

Input Box function

to add an input box to search pages using Special:WfExplore : {{#exploreinputbox:}}

you cant add 2 parameters : the first param is the button text, the second is the placehoder {{#exploreinputbox:GO| placeholder}}

configuration using global vars :

2 vars enable to configure filters params :

$wfexploreCategories = [ $categoriesName => [ CategorisValueName => CategorieValueLabel, ... ], ... ]

$wfexploreCategoriesNames = [ 'Type' => 'int:wfexplore-type' , 'area' => 'int:wfexplore-category', 'Difficulty' => 'int:wfexplore-difficulty', 'Cost' => 'int:wfexplore-cost', 'Complete' => 'Complete', ];

Note : using prefix 'int' enable to use translation key

configure layout to display results :

it is possible to change the layout of results, to do it, set the available layouts in LocalSettings.php : $wgExploreResultsLayouts = [ 'event' => DIR . '/views/layout-event.html' ];

then, when calling the explore with parser function in a page, set the 'layout' params : {{#displayExplore: layout=event}}

configure filters for layout

it is possible te define other filter when a layout is given:

$wfexploreCategoriesByLayout = [ 'event' => [ $categoriesName => [ CategorisValueName => CategorieValueLabel, ... ], ... ] ];

Wikifab Groups config

To configure explore for groups like wikifab, here is the config : (it set no filters for groups)

$wgExploreResultsLayouts = [ 'group' => DIR . '/extensions/WfextStyle/templates/layout-group-search-result.html' ];

$wfexploreCategoriesByLayout = [ 'group' => [] ];

default sort order

Default sort order can be configured using the $wfeSortField var in LocalSettings.php. For instance, to sort by date of last change : $wfeSortField = 'Modification date';

configuration using hooks :

Explore::OnGetFilters it is possible to change categories using hooks, this is recommended for internationalized wiki.

Record hooks in LocalSettings, and set a function, for example :

$wgHooks['Explore::getFilters'][] = 'onExploreGetFilters'; function onExploreGetFilters(& $filters, $layout) { $filters["Type"] = [ ['Oukou'] = 'Oukoukou', ['Ouka'] = 'Oukaka' ]; return true; }

wikifab/explore 适用场景与选型建议

wikifab/explore 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 2.98k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2017 年 09 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 wikifab/explore 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 wikifab/explore 我们能提供哪些服务?
定制开发 / 二次开发

基于 wikifab/explore 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 4
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-09-14