svenlie/headless-viewhelper

There is no license information available for the latest version (1.3.0) of this package.

Extension to provide some fluid viewhelper with JSON output

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

1.3.0 2025-04-10 11:41 UTC

This package is auto-updated.

Last update: 2025-04-10 11:41:41 UTC


README

Installation

Install extension using composer

composer require svenlie/headless-viewhelper

Usage

Use the following fluid namespace:

<headlessViewhelper:form additionalAttributes="{data-anything: 'some info', data-something: 'blub'}" class="bla" action="submit" name="customer">
    <headlessViewhelper:form.textfield name="myTextBox" value="default value" />
</headlessViewhelper:form>

If you want to structure your viewhelpers you can use the following ViewHelpers:

<headlessViewhelper:jsonArray identifier="global">
    <headlessViewhelper:jsonElement identifier="form">
        <headlessViewhelper:form additionalAttributes="{data-anything: 'some info', data-something: 'blub'}" class="bla" action="submit" name="customer">
            <headlessViewhelper:form.textfield name="myTextBox" value="default value" />
        </headlessViewhelper:form>
    </headlessViewhelper:jsonElement>
    <headlessViewhelper:jsonElement identifier="dummy">
        <examplePackage:dummy />
    </headlessViewhelper:jsonElement>
</headlessViewhelper:jsonArray>