承接 hauerheinrich/hh-tt-address-places 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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:

example picture from backend example picture from backend

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 hauerheinrich/hh-tt-address-places 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-10-17