承接 evanshunt/carbon-fields-smartlink 相关项目开发

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

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

evanshunt/carbon-fields-smartlink

Composer 安装命令:

composer require evanshunt/carbon-fields-smartlink

包简介

Carbon Fields extension, that adds a SmartLink field type.

README 文档

README

This field allows you to select between internal and external links, choosing from a dropdown of Posts and Archives for internal links or manually entering a URL for external.

This repository is based on htmlburger/carbon-fields-template.

Installation

composer require evanshunt/carbon-fields-smartlink

Usage

use Carbon_Fields\Field\Field;

...

Field::make('smartlink', 'your_field_name', 'Your Field Name');

TODO

  1. Build in logic to neatly upgrade from a text URL field, redefining such as an external link.
  2. Add support for taxonomies, etc.

Building assets

  1. Edit webpack.config.js and make sure const root points to the directory where Carbon Fields are installed (e.g. const root = path.resolve(__dirname, '../vendor/includes/htmlburger/carbon-fields'); )
  2. Execute yarn install in the root directory to install all build process requirements.
  3. Execute yarn build to build the final minimized assets

Optional

Execute yarn run dev to continuously build assets during development. Note that you should add define( 'SCRIPT_DEBUG', true ); to your wp-config.php file in order to load the files generated by the dev build process.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2018-10-22