sparkalow/craft-activecampaign-forms 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sparkalow/craft-activecampaign-forms

最新稳定版本:1.1.0

Composer 安装命令:

composer require sparkalow/craft-activecampaign-forms

包简介

ActiveCampaign forms field for Craft CMS.

README 文档

README

A new field type to easily add ActiveCampaign forms to Craft CMS entries. Render the form in your templates with a simple twig method. Simplify managing form embed snippets for content authors.

Note: This plugin is not affiliated with ActiveCampaign, Inc. It is provided by a 3rd party.

Requirements

This plugin requires Craft CMS 4.4.0, 5.0.0 or later, and PHP 8.0.2 or later.

An ActiveCampaign account is also necessary.

Installation

You can install this plugin via the Plugin Store or using Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel or the web version and search for “ActiveCampaign Forms”. Then click “Install”.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require sparkalow/craft-activecampaign-forms

# tell Craft to install the plugin
./craft plugin/install activecampaign-forms

Setup

Once the plugin is installed:

  1. Go to SettingsActiveCampaign Forms.
  2. Enter your ActiveCampaign Account URL.
  3. Enter your API Key.
  4. Click Save.

See the official docs for info on how to get your API info.

Alternatively, you can also create an activecampaign-forms.php config file in your /config directory with the following options.

<?php

return [
    'account' => 'your_account_url',
    'apiKey' => 'your_api_key',
    'apiCacheDuration' => 0
];

See Environmental Configuration in the Craft documentation to learn more.

Usage

This plugin provides a new field type for selecting forms created on the ActiveCampaign platform. Create a new ActiveCampaign form field and add it to your entry types.

Once a form is set on an entry, render a form field on the frontend with:

 {{ craft.acforms.renderForm(entry.yourFieldHandle) | raw }}

This will render the form using ActiveCampaign's "Simple Embed" markup. This is essentially the same as copy/pasting the embed snippet.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2023-09-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固