remind/routing 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

remind/routing

最新稳定版本:v1.0.2

Composer 安装命令:

composer require remind/routing

包简介

REMIND - Routing

README 文档

README

This extension provides additional Route Enhancers and Aspects.

ExtbaseQuery Route Enhancer

ExtbaseQuery Route Enhancer replaces extbase plugin query parameters with custom names and omits action and controller parameters.

limitToPages

Optional, Route Enhancer only matches if correct CType exists on page.

defaults

Behave the same as described here.

namespace, extension, plugin, _controller

Behave the same as described here.

parameters

Parameters are divided into keys and values. In both, use the original parameter name as the key and the aspect name as the value. In keys it is possible to simply use a new parameter name as value instead of an aspect.

aspects

Aspects used for keys and values defined in parameters. Aspects for parameter keys must implement ModifiableAspectInterface while aspects for parameter values must implement MappableAspectInterface.

types

Limit the route enhancer to certain page types, for example to enhance solr search result routes but not autocomplete routes. Defaults to [0].

example for News Extension

  News:
    limitToPages: [20]
    type: ExtbaseQuery
    extension: News
    plugin: Pi1
    _controller: 'News::list'
    defaults:
      page: '1'
    parameters:
      values:
        currentPage: pageValueAspect
        overwriteDemand/categories: categoryValueAspect
      keys:
        currentPage: page
        overwriteDemand/categories: categoryKeyAspect
    aspects:
      pageValueAspect:
        type: StaticRangeMapper
        start: '1'
        end: '5'
      categoryValueAspect:
        type: PersistedAliasMapper
        tableName: sys_category
        routeFieldName: slug
      categoryKeyAspect:
        type: LocaleModifier
        default: category
        localeMap:
          -
            locale: 'de_DE.*'
            value: kategorie

With these settings, the query parameters will look like this:

English: ?page=...&category=...

German: ?page=...&kategorie=...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-02-13