diff --git a/composer.json b/composer.json index 9974126..46e1f7e 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ }, "require":{ "php":">=5.5", - "contao/core-bundle":"^4.4" + "contao/core-bundle":"^4.4.2" }, "require-dev": { "contao/manager-plugin": "^2.0" diff --git a/src/Resources/contao/dca/tl_rocksolid_slide.php b/src/Resources/contao/dca/tl_rocksolid_slide.php index ef4c53f..b7c2d25 100644 --- a/src/Resources/contao/dca/tl_rocksolid_slide.php +++ b/src/Resources/contao/dca/tl_rocksolid_slide.php @@ -314,10 +314,9 @@ 'rgxp' => 'url', 'decodeEntities' => true, 'maxlength' => 255, - 'tl_class' => 'clr w50 wizard', - ), - 'wizard' => array( - array('MadeYourDay\\RockSolidSlider\\Slider', 'pagePickerWizard'), + 'tl_class' => 'clr w50', + 'dcaPicker' => true, + 'addWizardClass' => false, ), 'sql' => "varchar(255) NOT NULL default ''", ), diff --git a/src/Slider.php b/src/Slider.php index e9ded93..d3c61d3 100644 --- a/src/Slider.php +++ b/src/Slider.php @@ -145,41 +145,6 @@ public function listSlides($arrRow) return '
' . $arrRow['title'] . ' ' . $GLOBALS['TL_LANG']['tl_rocksolid_slide']['types'][$arrRow['type']] . '
'; } - /** - * Page picker wizard for url fields - * - * @param \DataContainer $dc Data container - * @return string Page picker button html code - */ - public function pagePickerWizard($dc) { - return ' ' - . \Image::getHtml( - 'pickpage.gif', - $GLOBALS['TL_LANG']['MSC']['pagepicker'], - 'style="vertical-align:top;cursor:pointer"' - ) - . ''; - } - /** * Get all sliders and return them as array *