定制 tombroucke/sage-html-forms-submissions 二次开发

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

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

tombroucke/sage-html-forms-submissions

最新稳定版本:1.2.2

Composer 安装命令:

composer require tombroucke/sage-html-forms-submissions

包简介

Show HTML Forms submissions through a shortcode

README 文档

README

This package can be use in combination with HTML Forms plugin. You can display form submissions anywhere you want. One of the use-cases is a petition.

Installation

You can install this package with Composer:

composer require tombroucke/sage-html-forms-submissions

Shortcodes

Show list of submissions

[sage_html_forms_submissions slug="petition" fields="name:Name"]
Attribute Description
slug The form slug for which you want to display submissions (*)
id The form id for which you want to display submissions (*)
fields Comma-separated list of fields you want to show. field_key:Label (**)
sort asc or desc (default)

(*) Only one is needed (**) You can add indexes / numbering with index:#. E.g. index:#,name:Name

Show submission count

[sage_html_forms_submissions_count slug="petition"]
Attribute Description
slug The form slug for which you want to display submissions (*)
id The form id for which you want to display submissions (*)

Extra

Add a checkbox with a name of anonymous to anonymize submissions

<div class="form-check mb-2">
  <input
    class="form-check-input"
    type="checkbox"
    name="anonymous"
    value="true"
    id="anonymous"
  />
  <label class="form-check-label" for="anonymous">
    I\'d rather not have my name published
  </label>
</div>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-08