定制 pessek/hypepost 二次开发

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

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

pessek/hypepost

Composer 安装命令:

composer require pessek/hypepost

包简介

Utility plugin for quick prototyping of content posts

README 文档

README

Provides utilities for creating and editing posts.

Extendable form fields Post forms are built using an extended field API layer, which makes it easier to define all fields in one place, and not have to worry about maintaining form, action and profile logic separate from each other.

Reusable views Plugins can recycle existing resource views, saving lots of time needed to bootstrap new entity types.

Client site validation Client side form validation

AJAX form save Forms are saved using AJAX with saves user a few steps should the action fail.

Form Fields

To extend post form, use fields, <entity_type>:<entity_subtype> (or less granular fields, <entity_type> ) plugin hook.

The hook receives an instance of \hypeJunction\Fields\Collection, which allows you to easily manipulate fields:

elgg_register_plugin_hook_handler('fields', 'object:blog', function(\Elgg\Hook $hook) {

	$fields = $hook->getValue();
	/* @var $fields \hypeJunction\Fields\Collection */
	
	$fields->add('published_date', new MetaField([
		'type' => 'date',
		'required' => true,
	]);
	
	$fields->get('description')->required = false;
	
	return $fields;
});

Features

Icons

To enable or disable icons, use uses:icon, <entity_type>:<entity_subtype> hook. The handler should return true or false

Cover Images

To enable or disable cover images, use uses:cover, <entity_type>:<entity_subtype> hook. The handler should return true or false

Comments

To enable or disable comments, use uses:comments, <entity_type>:<entity_subtype> hook. The handler should return true or false

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2021-05-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固