mindseeker-media/craft-related-elements 问题修复 & 功能扩展

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

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

mindseeker-media/craft-related-elements

最新稳定版本:1.2.0

Composer 安装命令:

composer require mindseeker-media/craft-related-elements

包简介

Displays related elements of an entry, category or asset in the control panel edit view sidebar.

README 文档

README

Displays related elements of an entry, category or asset in the control panel edit view sidebar.

Screenshot

Requirements

This plugin requires Craft CMS 5.0.0 or later, and PHP 8.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project's Control Panel and search for "Related Elements". Then press "Install".

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require mindseeker-media/craft-related-elements

# tell Craft to install the plugin
./craft plugin/install related-elements

Configuration

Configure options in the control panel under Settings → Related Elements or create a configuration file config/related-elements.php.

<?php

return [
    'enableNestedElements' => true,
    'initialLimit' => 10,
    'showElementTypeLabel' => true,
];

Settings

  • enableNestedElements (boolean, default: true) - Whether to display the related elements that exist inside the CKEditor, Matrix or Neo fields of an element.
  • initialLimit (integer, default: 10) - Number of related elements to show initially before requiring "Show More" to expand the list.
  • showElementTypeLabel (boolean, default: true) - Whether to display the element type labels (Entry, Category, Asset, Tag) next to each related element.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: mit
  • 更新时间: 2024-09-16