定制 towardstudio/csvtotable 二次开发

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

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

towardstudio/csvtotable

最新稳定版本:3.0.0

Composer 安装命令:

composer require towardstudio/csvtotable

包简介

Create a table from a CSV

README 文档

README

Create a table from a CSV

Requirements

This plugin requires Craft CMS 5 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:
cd /path/to/project/craft
  1. Then tell Composer to load the plugin:
composer require towardstudio/csvtotable
  1. In the Control Panel, go to Settings → Plugins and click the “Install” button for CSV to Table.

Settings

In a Dev environment there is a control panel navigation item which will direct you to the plugin settings.

Within the settings you can set classes on each of the table elements to give a global style.

Template

{{ csvToTable(entry.csvTable) }}

To display the table, you can pass the Asset into a function. This will automatically change the data into a table format.

Additional Parameter

If you don't want your table to display with a <thead> you can pass an additional parameter of false into the function which will remove the <thead> option.

{{ csvToTable(entry.csvTable, false) }}

Toward Disclaimer

Brought to you by Toward

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-11