Download the PHP package mitydigital/statamic-frontend-grid-fieldtype without Composer

On this page you can find all versions of the php package mitydigital/statamic-frontend-grid-fieldtype. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-frontend-grid-fieldtype

Frontend Grid Fieldtype

Statamic 5 Frontend Grid Fieldtype for Statamic on Packagist


An opinionated frontend grid fieldtype for Statamic forms.

This is currently a work in progress.

There is no support offered at this time.

Installation

Config

If you're using a JS driver, such as Alpine, that supports scoping, your fieldtype configuration can include this scope.

You can also add labels for:

Just like Grid, you can also add a min and max number of rows.

Your form setup

On your Form template, outside of any Alpine work, include:

This will include the smarts for the Frontend Grid fieldtype if the current context has a Frontend Grid fieldtype. By default it is looking for a form with the handle provided by a form handle. You can change this by passing a handle parameter to the :has method.

Alpine

This is designed to work within a scoped setup.

It will require your form helper be available with the form variable.

Layouts

Publish layouts:

There is a layout for:

  1. Rendering the fieldtype on the frontend, and
  2. Rendering the value of the fieldtype in a Submission email

Render Tag

A frontend_grid tag is included for you to include in your HTML templates.

In your HTML template, you can get the rendered output using:

This will use the second layout mentioned above - and by default is a table that respects the grid widths.

In your text template, you can get the rendered output using:

This is a simple text output, with label+linebreak+value loops for each set.

There is also a has option to detect if the current context has a Frontend Grid fieldtype. You can provide an optional handle parameter that should be the field that stores your Form's handle. By default this is form.

Logic

This is only needed if you need to change the logic

Credits


All versions of statamic-frontend-grid-fieldtype with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
statamic/cms Version ^5.0
ext-intl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mitydigital/statamic-frontend-grid-fieldtype contains the following files

Loading the files please wait ....