Log in

hypePost

hypePost

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, : (or less granular fields, ) 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, : hook. The handler should return true or false

Cover Images

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

Comments

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

Package Releases

VersionRelease Date
hypePost 1.8.01.8.0
hypePost 1.7.11.7.1
hypePost 1.7.01.7.0
hypePost 1.6.01.6.0
hypePost 1.5.51.5.5
hypePost 1.5.41.5.4
hypePost 1.5.31.5.3
hypePost 1.5.21.5.2
hypePost 1.5.11.5.1
hypePost 1.5.01.5.0
hypePost 1.4.21.4.2
hypePost 1.4.11.4.1
hypePost 1.4.01.4.0
hypePost 1.3.01.3.0
hypePost 1.2.141.2.14
hypePost 1.2.131.2.13
hypePost 1.2.121.2.12
hypePost 1.2.111.2.11
hypePost 1.2.101.2.10
hypePost 1.2.91.2.9
hypePost 1.2.81.2.8
hypePost 1.2.71.2.7
hypePost 1.2.61.2.6
hypePost 1.2.51.2.5
hypePost 1.2.41.2.4
hypePost 1.2.31.2.3
hypePost 1.2.21.2.2
hypePost 1.2.11.2.1
hypePost 1.2.01.2.0
hypePost 1.1.01.1.0
hypePost 1.0.81.0.8
hypePost 1.0.71.0.7
hypePost 1.0.61.0.6
hypePost 1.0.51.0.5
hypePost 1.0.41.0.4
hypePost 1.0.31.0.3
hypePost 1.0.21.0.2
hypePost 1.0.11.0.1
hypePost 1.0.01.0.0

Changelog

1.4.2 (2018-07-09)

Bug Fixes

  • model: improve logging on failures (72fa26d)

1.4.1 (2018-07-08)

Bug Fixes

  • fields: use correct markup for checkboxes (bbbc63d)

1.4.0 (2018-07-07)

Bug Fixes

  • js: allow form to resubmit after validation error (ea25c59)

Features

  • export: add fields to export data (3e3b0ec)

1.3.0 (2018-06-29)

Bug Fixes

  • ui: do not add title button on post view page (c67dc6d)

Features

1.2.14 (2018-05-11)

Bug Fixes

  • styles: fix form formatting in a lightbox (6a413d0)

1.2.13 (2018-05-11)

Bug Fixes

  • composer: add dependencies (1da3bb4)
  • composer: add missing dependencies (f583930)
  • css: fix paddings in card footer (4be3703)
  • css: reduce form padding on small viewports (e26110d)
  • dev: use service facade (c4c5426)
  • field: add is_search_field flag (c5e3430)
  • fields: correctly determine field width class (ffbf0c6)
  • fields: do not display comments field if disabled for entity type (be4a513)
  • fields: fix cover getter function (a3c6dfb)
  • fields: fix field visibility logic (25481d1)
  • fields: fix icon and cover handling on unsaved entities (39a58b4)
  • fields: only validate value if not empty (d8309aa)
  • fields: update field models (e1a0fe5)
  • forms: correctly set field context (32ec81f)
  • layout: rearrange layout elements (a38fea0)
  • layout: simplify layout module registration (75a2bf1)
  • modules: always prevent default click (387958a)
  • output: concatenate array values (1928d9b)
  • output: default to using text view when output view does not exist (7296f6d)
  • river: correctly set river item params (474f658)
  • river: defer item creation until all metadata is set (109aa22)
  • save: do not attempt to save null values (1dff8fe)
  • styles: add module styling (f3c8d9d)
  • syntax: fix syntax parse error (4ad9fd3)

Features

  • fields: improve dev usability (9c09a0d)
  • fields: transition towards OOP field configuration (2d235c5)
  • forms: add client side form validation (6ac8a19)
  • forms: allow forms to be extended by entity type (bddbe58)

1.2.12 (2018-05-08)

Bug Fixes

  • save: do not attempt to save null values (1dff8fe)

1.2.11 (2018-04-27)

Bug Fixes

  • syntax: fix syntax parse error (4ad9fd3)

1.2.10 (2018-04-27)

Bug Fixes

1.2.9 (2018-04-27)

Bug Fixes

  • css: fix paddings in card footer (4be3703)

1.2.8 (2018-04-19)

Bug Fixes

  • fields: update field models (e1a0fe5)

1.2.7 (2018-04-03)

Bug Fixes

  • css: reduce form padding on small viewports (e26110d)

1.2.6 (2018-04-03)

Bug Fixes

  • composer: add missing dependencies (f583930)

1.2.5 (2018-03-31)

Bug Fixes

  • fields: only validate value if not empty (d8309aa)

1.2.4 (2018-03-31)

Bug Fixes

  • forms: correctly set field context (32ec81f)

1.2.3 (2018-03-31)

Bug Fixes

  • composer: add dependencies (1da3bb4)

1.2.2 (2018-03-31)

Bug Fixes

  • fields: fix field visibility logic (25481d1)

1.2.1 (2018-03-31)

Bug Fixes

  • field: add is_search_field flag (c5e3430)

1.2.0 (2018-03-31)

Features

  • fields: improve dev usability (9c09a0d)
  • forms: add client side form validation (6ac8a19)

1.1.0 (2018-03-28)

Features

  • fields: transition towards OOP field configuration (2d235c5)

1.0.8 (2018-03-27)

Bug Fixes

  • fields: fix icon and cover handling on unsaved entities (39a58b4)

1.0.7 (2018-03-27)

Bug Fixes

  • fields: fix cover getter function (a3c6dfb)

1.0.6 (2018-03-27)

Bug Fixes

  • styles: add module styling (f3c8d9d)

1.0.5 (2018-03-26)

Bug Fixes

  • output: concatenate array values (1928d9b)
  • river: defer item creation until all metadata is set (109aa22)

1.0.4 (2018-03-26)

Bug Fixes

  • output: default to using text view when output view does not exist (7296f6d)

1.0.3 (2018-03-26)

Bug Fixes

  • fields: correctly determine field width class (ffbf0c6)
  • modules: always prevent default click (387958a)
  • river: correctly set river item params (474f658)

1.0.2 (2018-03-26)

Bug Fixes

  • layout: simplify layout module registration (75a2bf1)

1.0.1 (2018-03-23)

Bug Fixes

  • layout: rearrange layout elements (a38fea0)

Features

  • forms: allow forms to be extended by entity type (bddbe58)

1.0.0 (2018-03-19)

Features

  • releases: initial commit (8016ff1)

About

Dependencies

Requires
Elgg version >= 3.0
Plugin: hypeAjax Any
Plugin: hypeTime Any
Suggests
Plugin: hypeScraper Any
Plugin: hypeCountries Any