hauerheinrich/hh-tt-address-places
Composer 安装命令:
composer require hauerheinrich/hh-tt-address-places
包简介
Simply adds places / companies TCA for EXT:tt_address.
README 文档
README
hh_tt_address_places is a TYPO3 extension. Use tt_address not only to manage / deliver personal addresses but also for locations / company addresses incl. opening hours.
Installation
... like any other TYPO3 extension extensions.typo3.org Don't forget to include the PageTS -> backend->rootPage->site configuration->resources!
Configuration
Add the PageTs to the page / directory (from TYPO3 BE site-tree). Keep default tt_address (persons) and hh_tt_address_places (places / companies) in a seperate page / directory! (optional) Add the PageTs (hh_tt_address_places - Allow only Places / Companies) to the storage place of your places / companies.
Usage
You should have all functions from the EXT:tt_address plugins, so use the tt_address plugins to show the places / companies like the "normal" tt_address entries. For the opening hours: there are example for the FLUID output at hh_tt_address_places/Resources/Private/Partials/
ViewHelper
openHoursMerged
Usage example: (Input can be any supported date and time format). optional: timeformat (default: H:i). optional: mergedDays true/false (groups open/closeing times by weekdays) optional: mergedDaysSeperator string (default " - ")
$openingHours description, supports lunch break or similar: open_monday: opening time in the morning (08:00:00), close_monday: closing time in the morning (12:00:00), open_monday2: opening time in the afternoon (13:00:00), close_monday2: closing time in the afternoon (17:00:00) Results in 08:00 - 12:00, 13:00 - 1700
If you do not want to display a lunch break or similar, please use open_monday and close_monday2 for the opening and closing times. open_monday: Opening time in the morning (08:00:00), close_monday2: closing time in the afternoon (17:00:00) Results in 08:00 - 17:00
$openingHours = [
'open_monday' => '08:00:00',
'close_monday' => '18:30:00',
'open_monday2' => '00:00:00',
'close_monday2' => '00:00:00',
'open_tuesday' => '13:00:00',
'close_tuesday' => '18:30:00',
'open_tuesday2' => '00:00:00',
'close_tuesday2' => '00:00:00',
'open_wednesday' => '08:00:00',
'close_wednesday' => '18:30:00',
'open_wednesday2' => '00:00:00',
'close_wednesday2' => '00:00:00',
'open_thursday' => '08:00:00',
'close_thursday' => '12:30:00',
'open_thursday2' => '13:00:00',
'close_thursday2' => '18:00:00',
'open_friday' => '08:00:00',
'close_friday' => '18:30:00',
'open_friday2' => '00:00:00',
'close_friday2' => '00:00:00',
'open_saturday' => '09:00:00',
'close_saturday' => '12:00:00',
'open_saturday2' => '00:00:00',
'close_saturday2' => '00:00:00',
'open_sunday' => '00:00:00',
'close_sunday' => '00:00:00',
'open_sunday2' => '00:00:00',
'close_sunday2' => '00:00:00',
];
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:places="http://typo3.org/ns/HauerHeinrich/HhTtAddressPlaces/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:variable name="openHours"><places:openHoursMerged hours="{openingHours}" timeFormat="H:i" /></f:variable>
<f:if condition="{openHours}">
<f:for each="{openHours}" as="hours">
<span>{hours}</span>
<f:comment>{hours} = e. g. "Monday - Friday: 08:00 - 18:30"</f:comment>
</f:for>
</f:if>
Translation via TypoScript for the days e. g.:
plugin.tx_hh_tt_address_places {
_LOCAL_LANG {
de {
day.monday = Montag
day.tuesday = Dienstag
day.wednesday = Mittwoch
day.thursday = Donnerstag
day.friday = Freitag
day.saturday = Samstag
day.sunday = Sonntag
day.hour = Uhr
day.appointment = nur nach Vereinbarung
}
}
}
Development
Want to contribute? Great!
Preview images:
Copyright notice
This repository is part of the TYPO3 project. The TYPO3 project is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.
This repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the repository!
License
GNU GENERAL PUBLIC LICENSE Version 3
hauerheinrich/hh-tt-address-places 适用场景与选型建议
hauerheinrich/hh-tt-address-places 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 136 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 10 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「address」 「extension」 「places」 「TYPO3 CMS」 「companies」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hauerheinrich/hh-tt-address-places 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hauerheinrich/hh-tt-address-places 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hauerheinrich/hh-tt-address-places 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Maps in minutes. Powered by the Google Maps API.
Redirects TYPO3 visitors automatic or with a suggestlink to another language and/or root page.
Google integration settings and helpers for Laravel Enso
A custom URL rule class for Yii 2 which allows to create translated URL rules
Module adding custom shipping attribute for what3words address
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
统计信息
- 总下载量: 136
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2023-10-17

