Download the PHP package heimrichhannot/contao-fieldpalette without Composer

On this page you can find all versions of the php package heimrichhannot/contao-fieldpalette. 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 contao-fieldpalette

FieldPalette

FieldPalette is a contao widget similar to [MultiColumnWizard] (https://github.com/menatwork/MultiColumnWizard). Unlike MultiColumnWizard, fields are stored flatly into 'tl_fieldpalette' table and synced with its parent field.

The fieldpalette configuration is based on Contao's Data Container Arrays.

FieldPalette Wizard - ListView

FieldPalette Wizard - Edit item

Technical instructions

Default Setup (tl_fieldpalette table)

This example shows the setup of an fieldpalette field within tl_news by using it within an subpalette. That example is available within the module [heimrichhannot/contao-plus] (https://packagist.org/packages/heimrichhannot/contao-news_plus).

Custom table setup (e.g. tl_member_address)

In order to use Fieldpalette with your own table, create a Data Container Array that extends from $GLOBALS['TL_DCA']['tl_fieldpalette'], as the following example describes.

Than add the following fieldpalette input to your parent table (e.g. tl_member).

Additional dca reference

All attributes from https://docs.contao.org/books/api/dca/reference.html supported, if they are implemented yet. Additional attributes will be listed here

Listing records

Sorting
Key Value Description
viewMode View mode (integer) 0 Table (default)
1 List

Support recursive copying of fieldpalette records by copying their parent record

Simply add a to the dca containing fields of type "fieldpalette":

Manipulate fieldpalette records about to be copied on the fly

Sometimes your fieldpalette records contain references to other fieldpalette records. When copying them, reference ids don't match the new (copied) ids anymore. You can adjust that by using the copy_callback definable in your field's dca (the field of type "fieldpalette"):

Example for such a callback:

Features

Widgets

Name Description
fieldpalette The FieldPaletteWizard renders the tl_fieldpalette items and provide crud functionality within its parent record (e.g. tl_news).

Fields

tl_fieldpalette:

Name Description
id autoincrement unique identifiere
pid id of the parent entry
ptable parent table name (e.g. tl_news)
pfield parent field name (e.g. tl_news.venues)
sorting the sorting value
published the published state (1 = published)
start timestamp from where the element is published
stop timestamp until the element is published

Form Callbacks

tl_fieldpalette:

Type Description
oncreate_callback Get fieldpalette key from request, check if the parent table is active within Fieldpalette Registry and set the pfield to tl_fieldpalette item.
onsubmit_callback Update/Sync parent fieldpalette item value (for example tl_news.venues) when tl_fieldpalette entries were updated.
oncut_callback Update/Sync parent fieldpalette item value (for example tl_news.venues) when tl_fieldpalette entries were sorted.
ondelete_callback Update/Sync parent fieldpalette item value (for example tl_news.venues) when tl_fieldpalette entries were deleted.

Hooks

Name Arguments Description
loadDataContainer $strTable Register fields from parent datacontainer (like tl_news) to tl_fieldpalette and disable fieldpalette support from back end modules where no fieldpalette fields exists (see: initializeSystem Hook).
initializeSystem - Enable tl_fieldpalette table within all back end modules.
executePostActions $strAction, \DataContainer $dc Add refreshFieldPaletteField ajax action that return the updated FieldPaletteWizard content.

Restrictions


All versions of contao-fieldpalette with dependencies

PHP Build Version
Package Version
Requires php Version ~5.4 || ~7.0
contao/core-bundle Version ^3.5.1 || ~4.1
contao-community-alliance/composer-plugin Version ~2.4 || ~3.0
heimrichhannot/contao-haste_plus Version ^1.6.84
heimrichhannot/datatables Version ^1.10
heimrichhannot/datatables-additional Version ^1.0
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 heimrichhannot/contao-fieldpalette contains the following files

Loading the files please wait ....