towardstudio/sectionfield 问题修复 & 功能扩展

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

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

towardstudio/sectionfield

最新稳定版本:3.0.1

Composer 安装命令:

composer require towardstudio/sectionfield

包简介

Creates a section selector field in the CMS

README 文档

README

Creates a section selector field in the CMS

Requirements

This plugin requires Craft CMS 5 or later. For Craft 4 please use version 2.0.0

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/sectionfield
  1. In the Control Panel, go to Settings → Plugins and click the “Install” button for Section Field.

Usage

Sections

{% set sections = craft.sectionField.sections(entry.myFieldHandle) %}

{% for section in sections %}
	{{ section.name }}
{% endfor %}

Entries from the selected section/s

{% set entries = craft.sectionField.entries(entry.myFieldHandle) %}

{% for entry in entries.all() %}
	{{ entry.title }}
{% endfor %}

Toward Disclaimer

Brought to you by Toward

统计信息

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

GitHub 信息

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

其他信息

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