定制 oneup/contao-backend-sortable-list-views 二次开发

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

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

oneup/contao-backend-sortable-list-views

最新稳定版本:1.2.0

Composer 安装命令:

composer require oneup/contao-backend-sortable-list-views

包简介

Makes backend list views sortable even without a parent table.

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Adds the missing sorting mode to Contao: custom sort without the need for a parent table.

Installation

Require bundle

composer require oneup/contao-backend-sortable-list-views

Add routes

# config/routes.yaml

OneupContaoBackendSortableListViewsBundle:
    resource: "@OneupContaoBackendSortableListViewsBundle/config/routes.yaml"

Configuration

# contao/dca/tl_my_custom_table.php

// Add sorting flag
$GLOBALS['TL_DCA']['tl_my_custom_table']['list']['sorting']['sortableListView'] = true;

// Add database field
$GLOBALS['TL_DCA']['tl_my_custom_table']['fields']['sorting']['sql'] = 'int(10) unsigned NOT NULL default 0';

Run a Contao migration / database update and enjoy happy drag&drop sorting!

Development

Backend

Install dependencies

composer install

Run the code style fixer

php composer cs-fixer

Run the static analyzer

php composer phpstan

Run the unit tests

php composer phpunit

Frontend

Install dependencies

npm install

Build frontend assets

npm run build

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-04