定制 plenta/contao-tooltip-bundle 二次开发

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

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

plenta/contao-tooltip-bundle

最新稳定版本:1.1.1

Composer 安装命令:

composer require plenta/contao-tooltip-bundle

包简介

Tooltip Bundle

README 文档

README

Easy way to get editor friendly additional information as a tooltip/modal, popup/dialog or overlay.
Add tooltips/modal/dialog/overlay next to a lot of elements.

Elements will be loaded by ajax.

Copy generated insert tag directly from source to clipboard to put it where ever you want.

Example: {{plenta_tooltip::alias}}

Installation

Install using Contao Manager

Search for tooltip, dialog or modal and you will find this extension.

Install using Composer

composer require plenta/contao-tooltip-bundle

System requirements

  • PHP: ^8.0
  • Contao: ^4.13 || ^5.3 (later for Contao 5)

Settings

Modal Popup Width Configuration

Choose from a variety of predefined max-width settings available in the tooltip options. Additionally, you have the flexibility to incorporate custom sizes by adjusting the config.yml file.

# Predefined <dialog> sizes
plenta_tooltip:
    tooltip_sizes:
        small:
            cssClass: tooltip-small
        medium:
            cssClass: tooltip-medium
        large:
            cssClass: tooltip-large

Each predefined tooltip size corresponds to a specific CSS custom property, offering a seamless integration into your design.

:root {
    --plenta-tooltip-max-width-large: 1280px;
    --plenta-tooltip-max-width-medium: 680px;
    --plenta-tooltip-max-width-small: 380px;
    --plenta-tooltip-max-width-default: var(--plenta-tooltip-max-width-medium);
}

Resources Integration

To effortlessly incorporate the plugin into your project, minimal CSS and JavaScript files are supplied. These files are loaded during the insert tag replacement process. The CSS file appends its styles to the $GLOBALS['TL_CSS']['plenta_tooltip'] variable, while the JavaScript file appends its code to the $GLOBALS['TL_BODY']['plenta_tooltip_js'] variable.

Contao tooltip rxample

Popup example

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2023-11-21