oveleon/contao-company-bundle
Composer 安装命令:
composer require oveleon/contao-company-bundle
包简介
Company integration for Contao Open Source CMS
README 文档
README
The Company Bundle adds company information via Insert-Tags, social media information and a logo module for websites and different website roots.
Support
If you like this extension, we'd love your support in keeping the open-source spirit alive.
If you think this plugin is useful, please consider sponsoring us to help contribute to our time invested and to further development of this and other open source projects.
Your contributions, whether through coding, testing, providing feedback, or even
a donation, help ensure that we can continue offering free open source software.
Join us in making a difference, and thank you for your support! - Oveleon.
Working with Contao 4.13 and Contao ^5.3 (PHP ^8.1)
Description
The company bundle allows you to manage company details for one or more companies provided in the contao settings and website roots. Company details stored in the settings are used as a fallback if specific company details are missing in the involved website roots. Company details can be displayed dynamically by using the provided company modules (social-media-list & logo) or alternatively by using the provided company insert tags. You can display company details dynamically simply by using the provided company modules or alternatively by using a company insert tag.
Features
- Compatible with Contao 4.13 and higher versions (PHP 8 Support)
- Easy setup for company details
- All company details can be overwritten within website roots
- Fallback company details
- Insert tags
- Logo module
- Href works with prepend locale and different website roots
- Social media lists
Installation
Via composer
composer require oveleon/contao-company-bundle
Via contao-manager
Search for contao company bundle and add it to your extensions.
After installing the contao-company-bundle, you need to run a contao install.
Setup
Setup company details
-
Go to
System > Settingsand navigate to the palette:Company-details -
Type in your company details to be used with insert-tags and save the changes
-
Additionally you can select a logo and create multiple social media entries
-
If you want to overwrite your company-details for different website roots, go to
Layout > Site structure > Edit page (Root page)and navigate to the palette:Company-details. Keep in mind that saving these will overwrite the modules and insert-tags for this root page.
Logo module
- Create the front-end module Logo
- Set up an image size
- Decide wether the logo should redirect to the website root
- Embed the module within your layout (e.g. header-section) or in your articles
Social media list
- Create the front-end module Social media list
- Choose a template (Default or nolabel)
- Embed the module within your articles
- (Additionally you can choose the template
nolabeland style them with an icon font)
Insert tags
Your company information can be displayed using following insert-tags.
For more information on Insert tags, please visit the official Contao documentation.
Example
{{company::name}}
{{company::tel}}
Company details
| Company details | |
|---|---|
| Insert tag | Description |
| {{company::name}} | Displays the company name |
| {{company::street}} | Displays the street |
| {{company::postal}} | Displays the postal |
| {{company::city}} | Displays the city |
| {{company::state}} | Displays the state |
| {{company::country}} | Displays the country |
| {{company::phone}} | Displays Phone Number 1 |
| {{company::phone2}} | Displays Phone Number 2 |
| {{company::fax}} | Displays the Fax Number |
| {{company::email}} | Displays E-mail address 1 |
| {{company::email2}} | Displays E-mail address 2 |
| {{company::info}} | Displays Info 1 |
| {{company::info2}} | Displays Info 2 |
Additional
| Additional insert-tags | |
|---|---|
| Insert tag | Description |
| {{company::tel}} | Creates a phone link from Phone1
<a href="tel:01234567890">0123 / 45 67 890</a> |
| {{company::tel2}} | Creates a phone link from Phone2
<a href="tel:01234567890">0123 / 45 67 890</a> |
| {{company::mailto}} | Creates a mailto link from E-Mail address 1
<a href="mailto:info@oveleon.de">info@oveleon.de</a> |
| {{company::mailto2}} | Creates a mailto link from E-Mail address 2
<a href="mailto:info@oveleon.de">info@oveleon.de</a> |
| {{company::address}} | Displays the full address: Street, Postal City |
| {{company::countrycode}} | Displays the ISO 639-1 country code from Country |
| {{company::vcard_url}} | Generates a vcard out of the company data |
Front end modules
Logo (Company)
Displays the saved company logo with an optional redirect to the website root.
The image for the logo-module is set up within the system or root page settings.
Social media list (Company)
Displays the company social media.
The social media list is set up within the system or root page settings.
Adding custom social media
The social media platforms within the select box are generated from the file:
tl_company_socials.xlf
You are able to add new social-media by creating a translation file and uploading them on your server as shown below:
Contao root files
Company Settings
oveleon/contao-company-bundle 适用场景与选型建议
oveleon/contao-company-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.42k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2019 年 02 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「contao」 「insert-tags」 「company-bundle」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 oveleon/contao-company-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 oveleon/contao-company-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 oveleon/contao-company-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Contao Open Source CMS
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
Various content elements, modules and features to improve working with articles.
Various modules to display articles in a way so that problems that occur when using Insert-Tags are avoided.
Implementation of carouFredSel as extension for Contao Open Source CMS
Contao CMS integrity check for some files
统计信息
- 总下载量: 3.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-14