定制 heimrichhannot/contao-location-bundle 二次开发

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

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

heimrichhannot/contao-location-bundle

最新稳定版本:2.2.2

Composer 安装命令:

composer require heimrichhannot/contao-location-bundle

包简介

This bundle adds a location entity to contao.

README 文档

README

This bundle adds a location entity to contao.

Features

Setup and Usage

Installation

Install via composer: composer require heimrichhannot/contao-location-bundle and update your database.

Usage

A typical use case for location is to set location in another entity like news or events. So you need to add it to the destiny bundle dca. There are many ways in contao to make a connection to locations like selects or checkboxes. Our recommendation is to use the contao picker widget:

$dca['tl_news']['fields']['locations'] = [
    'inputType' => 'picker',
    'relation' => ['type' => 'hasOne', 'load' => 'eager', 'table' => 'tl_location'],
    'eval' => [
        'multiple' => true, //
        'tl_class' => 'w50 clr autoheight'
    ],
    'sql' => 'blob NULL',
]

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2019-06-14