承接 eminos/statamic-element-picker 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

eminos/statamic-element-picker

最新稳定版本:v1.1.0

Composer 安装命令:

composer require eminos/statamic-element-picker

包简介

A Statamic addon that adds an Element Picker fieldtype and lets you pick an element and generate a unique CSS selector for that element.

README 文档

README

A Statamic plugin that adds an Element Picker Fieldtype.
Pick an element and get its short and unique "CSS selector".

Screenshot of the Element Picker Fieldtype

Installation

Install this plugin using composer.

composer require eminos/statamic-element-picker

Features

  • Pick an element right on that page or a configurable URL.
  • Configure where the URL is coming from.
    • Set the URL in the field config.
    • Let the URL come from a sibling or ancestor field (works inside Grids or Replicators as well).
  • If you choose to use a URL a new window will open with that URL where you can pick your element with a click.
  • Saves a short and unique "CSS selector" for that element which you can use to find the element again (uses finder under the hood).

Here's a screenshot of the config options.

Screenshot of the Element Picker field config

Known limitations

  • The URL must be the same origin as the page where the Element Picker is loaded. In other words you can only pick an element from the same domain as the control panel. This is because of the security in how messaging between open windows/tabs work. There might be a workaround involving Shadow DOM or similar.

Possible improvements

  • Option to set the URL right on the Element Picker field itself. This can optionally get saved together with the CSS selector string.
  • Configurable CSS selector generation / finder.
  • Configurable inspector design, background color, border, etc.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-09-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固