w3caredev / tariff
tariff
dev-master
2018-04-17 13:36 UTC
Requires
- craftcms/cms: ^3.0.0-RC1
This package is not auto-updated.
Last update: 2024-10-03 04:39:08 UTC
README
tariff
要求
此插件需要Craft CMS 3.0.0-beta.23或更高版本。
安装
要安装此插件,请按照以下说明操作。
-
打开您的终端并转到您的Craft项目
cd /path/to/project
-
然后让Composer加载插件
composer require w3caredev/tariff
-
在控制面板中,转到设置→插件,然后点击tariff的“安装”按钮。
tariff概览
-在此处插入文本-
配置tariff
-
//在您的 /vendor/w3caredev/tariff/src/modal/Settings.php 中设置配置
$tableField = 'priceByAge'; $ageColumn = 'age'; $priceColumn = 'price'; $sectionName = 'tariffs';
使用tariff
-{% set birthdate = '01/30/2008' %}
{% for item in craft.tariff.birthdate(birthdate).hide("noPrice").sort("price", "DESC").find() %}
{{item.title}}
{{item.price}}
{{item.customfiled1}}
{% endfor %}-
tariff路线图
一些待办事项和潜在功能的想法
- 发布
由w3caredev提供