定制 tresdstudioweb/dynamic-select 二次开发

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

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

tresdstudioweb/dynamic-select

Composer 安装命令:

composer require tresdstudioweb/dynamic-select

包简介

This component simplifies the configuration of data relationships through taxonomies, which means that the information displayed in the second selector dynamically adjusts based on the option selected in the first selector. This provides users with a more intuitive and personalized experience when c

README 文档

README

Dynamic Select - Statamic Addon

The Dynamic Select addon for Statamic streamlines the configuration of data relationships using taxonomies. This means that the options displayed in the second selector dynamically adjust based on the choice made in the first selector. This enhances user experience by providing an intuitive and personalized selection process, allowing users to focus on and choose only the relevant options based on their initial selection. It's essential to emphasize that taxonomies must be interconnected in a one-to-many relationship through dependent fields utilizing a foreign key in the taxonomy that acts as the dependent one.

Key Features:

Simplifies configuration of data relationships through taxonomies. Dynamically adjusts the options in the second selector based on the choice in the first selector. Enhances user experience by providing a personalized selection process.

How to Install

Installation:

  1. Navigate to the Tools > Addons section in the Statamic control panel.
  2. Search for "Dynamic Select" and click Install. OR Run the following command from your project root:
composer require trestudioweb/dynamic-select

Using the Addon:

To make the most of the Dynamic Select addon, follow these steps:

  1. Create two taxonomies that will be related in a one-to-many relationship.
  2. Ensure that the dependent taxonomy has a field with a foreign key to link the data to the first taxonomy. This addon is specifically designed to assist in retrieving or populating dependent select fields within the content management control panel in Statamic. Make your data relationships seamless and enhance the user's ability to make informed and relevant selections.

How to Use

  1. Set Up Taxonomies:
    • Create two taxonomies establishing a one-to-many relationship.
    • Ensure the dependent taxonomy has a field with a foreign key linking it to the first taxonomy.
  2. Create Field Type:
    • Within the content you intend to use, create the field type.
    • Choose the "Dynamic-select" field type in the special section when configuring your content blueprints.
  3. Configure Resource:
    • In the resource configuration section, select "taxonomy" as the resource origin.
    • This enables the configuration section for the two taxonomies that will populate the two selects.
  4. Configuration of the First Taxonomy:
    • Three configuration fields are available: "First Taxonomy": Choose the taxonomy populating the first select. Primary Key": Specify the primary key column within the first taxonomy. "Text Field": Specify the column containing visible text for the end user.
  5. Configuration of the Second Taxonomy:
    • In this section, configure information for the second taxonomy with four fields: "Second Taxonomy": Choose the source of data for the second select (dependent one). "Foreign Key": Specify the foreign key in the second taxonomy establishing the one-to-many relationship with the first taxonomy. "Primary Key of the Second Taxonomy": Specify the primary key of the second taxonomy. "Text Field": Enter the name of the column containing text or labels for the second select. Follow these steps to seamlessly integrate and configure the Dynamic Select addon, enhancing the user's ability to make informed and relevant selections based on the dynamic relationships between the two taxonomies.

tresdstudioweb/dynamic-select 适用场景与选型建议

tresdstudioweb/dynamic-select 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 269 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 11 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 tresdstudioweb/dynamic-select 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 tresdstudioweb/dynamic-select 我们能提供哪些服务?
定制开发 / 二次开发

基于 tresdstudioweb/dynamic-select 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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