homm/hommwarehouse
最新稳定版本:1.0.5
Composer 安装命令:
composer require homm/hommwarehouse
包简介
Craft CMS warehouse field
README 文档
README
Craft CMS warehouse field type
This plugin adds a new warehouse field type
Requirements
This plugin requires Craft CMS 4.x.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project -
Then tell Composer to load the plugin:
composer require homm/hommwarehouse -
In the Control Panel, go to Settings → Plugins and click the “Install” button for HOMM warehouse.
HOMM warehouse Overview
This plugin adds a new warehouse field type
Configuring HOMM warehouse
Go to Settings > HOMM Warehouse:
Here you can set if the plugin should be enabled/disabled.
Using HOMM warehouse (not done yet)
- Go to Settings > Fields and create a new field.
- Within the Field Type choose HOMM warehouse
- Assign the field to a section
- Now you can set an amount within your entries warehouse field
Basic usage in the template (Twig):
<!-- Retrieve the stock --> <span>{{ entry.warehouseField.stock }}</span> <!-- Retrieve the date on which the stock was last changed --> <span>{{ entry.warehouseField.updatedAt }}</span>
HOMM warehouse Roadmap
Some things to do, and ideas for potential features:
- Add twig variables
Brought to you by HOMM interactive
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-10