定制 amkdev/server-path-field 二次开发

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

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

amkdev/server-path-field

Composer 安装命令:

composer require amkdev/server-path-field

包简介

Craft CMS field type that provides a dropdown field that let you select a server path within the webroot.

README 文档

README

Plugin Icon: A folder with a dropdown arrow on a blue background.

Server Path Field plugin for Craft CMS 3.x

A dropdown field that lets you select a directory in the public webroot of a craftCMS project. It's possible to define a root path (within the webroot) and filter multiple directories.

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require amkdev/server-path-field
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Server Path Field.

Server Path Field Overview

Server Path Field adds a custom FieldType to Craft CMS called Server Path. This lets you choose from any direcotry found in the webroot, which then returns the path as twig value.

This plugin is basic and not so useful as standalone, but it extends the possiblities of other extensions need a specific public path. For instance Server Files or GetFiles.

Disclaimer

This plugin is distributed free of charge under the MIT License. The author is not responsible for any data loss or issues resulting from use of the plugin.

Special Thanks

This plugin is based on the Asset Folder Field plugin by Ryan Whitney.

This plugin was made with the help of assets and code found within the CraftCMS community. These folks are not affiliated with this plugin in any way, though I greatly appreciate their contributions to the community.

Thanks to @mmikkel, whose IncognitoField plugin was heavily referenced and used as a general framework when using this plugin. 🎉

Thanks to @anubarak, whose StackExchange answer provided the basis for the folder finding logic. 🎉

And thanks to @landon, whose folder icon was used in the logo. 🎉

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固