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
- adds a new (nestable) location entity
- ConfigElementType for List and Reader bundle
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
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2019-06-14