Skip to content

Commit

Permalink
Increase the length of the database fields to ensure larger sets of s…
Browse files Browse the repository at this point in the history
…tyles
  • Loading branch information
doishub committed Nov 19, 2020
1 parent 4b6eeaa commit 66c7228
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_article.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_article']['fields']['cssID']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_article']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_article']['fields']['cssID']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
$GLOBALS['TL_DCA']['tl_article']['fields']['cssID']['save_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onSave');
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_calendar_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cssClass']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_calendar_events']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cssClass']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['cssClass']['save_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onSave');
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_content']['fields']['cssID']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_content']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_content']['fields']['cssID']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
$GLOBALS['TL_DCA']['tl_content']['fields']['cssID']['save_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onSave');
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_form']['fields']['attributes']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_form']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_form']['fields']['attributes']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
$GLOBALS['TL_DCA']['tl_form']['fields']['attributes']['save_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onSave');
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_form_field.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_form_field']['fields']['class']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_form_field']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_form_field']['list']['sorting']['child_record_callback'] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'listFormFields');
$GLOBALS['TL_DCA']['tl_form_field']['fields']['class']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_layout']['fields']['cssClass']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_layout']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_layout']['fields']['cssClass']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
$GLOBALS['TL_DCA']['tl_layout']['fields']['cssClass']['save_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onSave');
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_module']['fields']['cssID']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_module']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_module']['fields']['cssID']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
$GLOBALS['TL_DCA']['tl_module']['fields']['cssID']['save_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onSave');
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_news.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_news']['fields']['cssClass']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_news']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_news']['fields']['cssClass']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
$GLOBALS['TL_DCA']['tl_news']['fields']['cssClass']['save_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onSave');
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/contao/dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'sql' => "blob NULL"
);

$GLOBALS['TL_DCA']['tl_page']['fields']['cssClass']['sql'] = "text NOT NULL default ''";

$GLOBALS['TL_DCA']['tl_page']['config']['onload_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'addPalette');
$GLOBALS['TL_DCA']['tl_page']['fields']['cssClass']['load_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onLoad');
$GLOBALS['TL_DCA']['tl_page']['fields']['cssClass']['save_callback'][] = array('\\Oveleon\\ContaoComponentStyleManager\\StyleManager', 'onSave');

0 comments on commit 66c7228

Please sign in to comment.