定制 getherbie/plugin-simplecontact 二次开发

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

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

getherbie/plugin-simplecontact

最新稳定版本:v2.0.1

Composer 安装命令:

composer require getherbie/plugin-simplecontact

包简介

SimpleContact Plugin for Herbie.

README 文档

README

Simplecontact is a Herbie plugin that allows you to add a simple contact form to your website. Such a form consists of the fields name, email and message.

Installation

The plugin is installed via Composer.

$ composer require getherbie/plugin-simplecontact

After that, the plugin can be activated in the configuration file.

plugins:
    enable:
        - simplecontact

Configuration

Under plugins.simplecontact.config the following options are available.

The email address to which the form will be sent:

recipient: (string)

Aliased template path to custom form template:

template: (string)

Notes

If you have enabled page caching, you must disable it.

---
title: Contact form
cached: false
---

Also, the global config components.pageRendererMiddleware.cache must be set to false. Otherwise the page would be loaded from the page cache.

The form is then rendered using the twig function of the same name.

{{ simplecontact() }}

Additional content can be placed before or after the function call. A complete contact page looks like this:

---
title: Contact form
cached: false
---

# Contact form

Please fill in all fields of the contact form:

{{ simplecontact() }}

We can also be reached via email or phone at...    

Demo

A live demo can be viewed at https://herbie.tebe.ch/contact.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固