2017 © Pedro Peláez
 

contao-module contao-tablelookupwizard

Contao widget to select records from a foreign table. Useful if you have a large set of records.

image

terminal42/contao-tablelookupwizard

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  • Tuesday, February 13, 2018
  • by aschempp
  • Repository
  • 4 Watchers
  • 3 Stars
  • 8,757 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 11 Versions
  • 13 % Grown

The README.md

tablelookupwizard Contao Extension

This widget allows you to lookup a foreign table and select records from it. Its primary advantage is that not all database records are listed, so it is very useful if you have a large set of records., (*1)

How to use:, (*2)

// DCA definition
'fieldname' => array
(
    'label'                   => &$GLOBALS['TL_LANG']['tl_tablename']['fieldname'],
    'inputType'               => 'tableLookup',

    'eval'                    => array
    (
        // The foreign table you want to search in
        'foreignTable'        => 'tl_foreign_tablename',

        // Define "checkbox" for multi selects and "radio" for single selects
        'fieldType'           => 'checkbox',

        // A list of fields to be displayed in the table
        'listFields'          => array('field1', 'field2', 'tl_my_superb_join_table.field1'),

        // Custom labels to be displayed in the table header
        'customLabels'        => array('Label 1', 'Label 2', 'Label 3'),

        // Fields that can be searched for the keyword
        'searchFields'        => array('field1', 'tl_my_superb_join_table.field1'),

        // Adds multiple left joins to the sql statement (optional)
        'joins'               => array
        (
            // Defines the join table
            'tl_my_superb_join_table' => array
            (
                // Join type (e.g. INNER JOIN, LEFT JOIN, RIGHT JOIN)
                'type' => 'LEFT JOIN',

                // Key of the join table
                'jkey' => 'pid',

                // Key of the foreign table
                'fkey' => 'id'
            )
        ),

        // Find every given keyword
        'matchAllKeywords'    => true

        // Custom additional WHERE conditions
        'sqlWhere'            => 'someother=condition',

        // Custom ORDER BY - note that when you use "enableSorting" you cannot set this value!
        'sqlOrderBy'            => 'someColumn',

        // Adds a "GROUP BY" to the sql statement (optional)
        'sqlGroupBy'          => 'tl_my_superb_join_table.fid',

        // Adds a "LIMIT" statement to the query
        'sqlLimit'            => 100, // default is 30

        // The search button label
        'searchLabel'         => 'Search my table now!',

        // Enables drag n drop sorting of chosen values
        'enableSorting'       => true,

        // Custom templates, so you don't need to have your own widget for
        // smaller adjustments
        'customTpl' => 'be_widget_tablelookupwizard_content_custom', // Default be_widget_tablelookupwizard
        'customContentTpl' => 'be_widget_tablelookupwizard_content_custom', // Default be_widget_tablelookupwizard_content
    ),

    // SQL field definition
    'sql'                     => "blob NULL"
);

The Versions

13/02 2018

dev-master

9999999-dev

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

The Development Requires

widget contao tablelookupwizard

13/02 2018

3.3.0

3.3.0.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

widget contao tablelookupwizard

13/02 2018

dev-develop

dev-develop

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+ LGPL-3.0-or-later

The Requires

 

The Development Requires

widget contao tablelookupwizard

31/08 2016

3.2.1

3.2.1.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+

The Requires

 

widget contao tablelookupwizard

13/04 2016

3.2.0

3.2.0.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+

The Requires

 

widget contao tablelookupwizard

01/03 2016

3.1.3

3.1.3.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+

The Requires

 

widget contao tablelookupwizard

29/07 2015

3.1.2

3.1.2.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+

The Requires

 

widget contao tablelookupwizard

12/06 2015

3.1.1

3.1.1.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+

The Requires

 

widget contao tablelookupwizard

09/06 2015

3.1.0

3.1.0.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+

The Requires

 

widget contao tablelookupwizard

04/06 2015

3.0.0

3.0.0.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+

The Requires

 

widget contao tablelookupwizard

18/01 2015

2.0.1

2.0.1.0

Contao widget to select records from a foreign table. Useful if you have a large set of records.

  Sources   Download

LGPL-3.0+

The Requires

 

widget contao tablelookupwizard