2017 © Pedro Peláez
 

contao-module dcawizard

dcaWizard extension for Contao Open Source CMS

image

terminal42/dcawizard

dcaWizard extension for Contao Open Source CMS

  • Tuesday, May 29, 2018
  • by aschempp
  • Repository
  • 7 Watchers
  • 9 Stars
  • 27,089 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 22 Versions
  • 15 % Grown

The README.md

dcawizard Contao Extension

This extension provides a widget to handle external table records in the edit mode of the parent record., (*1)

How to use

// DCA defnition
'prices' => array
(
    'inputType' => 'dcaWizard',

    // Define the foreign table
    'foreignTable' => 'tl_iso_prices',

    // Define the foreign field (e.g. fid instead of pid)
    'foreignField' => 'fid',

    // Use the callback to determine the foreign table
    'foreignTable_callback' => array('tl_iso_prices', 'getTableName'),

    // Add special params to the link of the button
    'params' => [
        // Change the do parameter
        'do' => 'member',

        // Add new parameter, for example to filter the list
        'filterField' => 'group',
    ],

    'eval' => [
        // A list of fields to be displayed in the table
        'fields' => array('id', 'name', 'alias'),

        // Header fields of the table (leave empty to use labels)
        'headerFields' => array('ID', 'Name', 'Alias'),

        // Use a custom label for the edit button
        'editButtonLabel' => $GLOBALS['TL_LANG']['tl_iso_products']['prices_edit_button'],

        // Set a label if no records are found
        'emptyLabel' => $GLOBALS['TL_LANG']['tl_iso_products']['prices_empty_label'],

        // Order records by a particular field
        'orderField' => 'name DESC',

        // Hide the popup button (record list functionality only)
        'hideButton' => true,

        // Show operations next to every row (disabled by default)
        'showOperations' => true,

        // Define which operations you want to list
        // If this one is not defined, are all listed
        'operations' => ['edit', 'delete', 'new' /* for tables with sorting like tl_content */],

        // Define which global operations you want to add
        'global_operations' => ['new'],

        // Use your own custom template
        'customTpl' => 'be_widget_dcawizard_mytemplate',

        // Use the callback to generate the list
        'list_callback' => ['Isotope\tl_iso_prices', 'generateWizardList'],
    ],
),

// Example list callback:
/**
 * Generate a list of prices for a wizard in products
 * @param object
 * @param string
 * @return string
 */
public function generateWizardList($objRecords, $strId)
{
    $strReturn = '';

    while ($objRecords->next()) {
        $strReturn .= '<li>' . $objRecords->name . ' (ID: ' . $objRecords->id . ')' . '</li>';
    }

    return '<ul id="sort_' . $strId . '">' . $strReturn . '</ul>';
}

Using the dcaWizard together with DC_Multilingual

If you want to use the dcaWizard to manage a foreign table that is generated by DC_Multilingual you can simply use, (*2)

    'inputType' => 'dcaWizardMultilingual',

so the translated entries will not be listed., (*3)

If you do not use the language database column to separate entries (see langColumn setting in DC_Multilingual, you can specify the matching column name in the eval section as well:, (*4)

    'eval' => [
        'langColumn' => 'language_column_name',
    ],
)

The Versions

29/05 2018

dev-develop

dev-develop

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

29/05 2018

dev-master

9999999-dev

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

29/05 2018

2.4.4

2.4.4.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

29/05 2018

dev-hotfix/2.4.4

dev-hotfix/2.4.4

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

28/11 2017

2.4.3

2.4.3.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

23/11 2017

dev-hotfix/2.4.3

dev-hotfix/2.4.3

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

17/10 2017

2.4.2

2.4.2.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

16/10 2017

dev-hotfix/2.4.2

dev-hotfix/2.4.2

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

28/09 2017

2.4.1

2.4.1.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

15/09 2017

2.4.0

2.4.0.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

14/09 2017

2.3.6

2.3.6.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

13/07 2017

dev-hotfix/2.3.6

dev-hotfix/2.3.6

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

28/06 2017

2.3.5

2.3.5.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

04/08 2016

2.3.4

2.3.4.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

08/02 2016

2.3.3

2.3.3.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

04/12 2015

2.3.2

2.3.2.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

16/09 2015

2.3.1

2.3.1.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

20/11 2014

2.3.0

2.3.0.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

30/09 2014

2.2.0

2.2.0.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

25/08 2014

2.1.0

2.1.0.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

23/12 2013

2.0.2

2.0.2.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard

23/12 2013

2.0.1

2.0.1.0

dcaWizard extension for Contao Open Source CMS

  Sources   Download

LGPL-3.0+

The Requires

 

contao dca wizard dcawizard