Skip to content

lfrsales/custom-liferay-ddm-form-fields

Repository files navigation

Custom Liferay DDM Form Fields

Custom form fields for Liferay 7.3 built using React.

Fields Included:

Userdata Field

Image Checkbox

Character Limited Text Input

example

Steps to Deploy

If you don't already have blade installed, you can find steps for that here.

  1. Update the liferay.workspace.home.dir=/path/to/liferay/home property to point towards your liferay home directory.
  2. From the root directory run blade gw deploy.

Steps to Create

  1. $ blade init -v dxp-7.3-ga1 custom-liferay-ddm-form-fields
  2. $ cd custom-liferay-ddm-form-fields;
$ blade create \
-t form-field \
-c CharacterLimitedText \
--js-framework react \
-p com.liferay.dynamic.data.mapping.form.field.type.internal.character.limited.text \
character-limited-text

At this point the field is ready to deploy.

To add custom settings for fields you will need to add additional files. This can be seen in the commit Add logic for character limited text field.

Contributing Guidelines

Pull requests welcome.

Releasing

Releases are handled using Github actions.

To release a new version do the following:

  1. Create a git tag.

    1. git tag v0.0.1
  2. Push the tag to Github.

    1. git push origin v0.0.1

The Github action will be triggered and will attach all assets to the release.