guillaumeferron/post-content 问题修复 & 功能扩展

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

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

guillaumeferron/post-content

Composer 安装命令:

composer require guillaumeferron/post-content

包简介

A post content builder field for Laravel Nova.

README 文档

README

This package adds a custom field to nova resources.

The field is a post content writer and supports images, videos, paragraphs and carousels.

PostContent Demo

Demo Video

How it works

This package adds orderable rows:

Currently this package only supports :

  • Plain text paragraphs.
  • Url-provided images.
  • Url-provided videos (Youtube | Vimeo | Server Storage).
  • Images / Videos carousels.

Installation and usage

You may require this package using composer:

composer require guillaumeferron/post-content

You can directly use the PostContent in the fields() methods by relating it to a longText SQL attribute:

PostContent::make('attribute_name')

Customization

You can customize the field behavior :

withFields
PostContent::make('attribute_name')->withFields([options])

Choose the fields to be added as new rows

Function Type Default Values
->withFields(options) Array ['text', 'image', 'video', 'carousel'] {'text', 'image', 'video', 'carousel'}
withCarouselFields
PostContent::make('attribute_name')->withCarouselFields([options])

Choose the fields to be added as new carousel's slides

Function Type Default Values
->withCarouselFields([options]) Array ['image', 'video'] {'image', 'video'}
withFileManager
PostContent::make('attribute_name')->withFileManager('url')

Specify the file manager url if it exists. Recommendation: Nova FileManager

Function Type Default
->withFileManager('url') String ''
hideHelpers
PostContent::make('attribute_name')->hideHelpers()

Hide the blue background helpers displayed when a row needs to be filled

Roadmap

  • Make the initial row dynamic depending on what fields are specified or not.
  • Make the paragraphs' text editor WYSIWYG.
  • Add the two columns options to the paragraphs.

License

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

统计信息

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

GitHub 信息

  • Stars: 22
  • Watchers: 1
  • Forks: 2
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固