Typo3 Snippets  >  Snippets  >  Extension-Programmierung  >  RGSmoothGallery in eigene Extension integrieren

RGSmoothGallery in eigene Extension einbinden

Wenn man die (ziemlich geniale!) Extension RGSmoothGallery in eine eigene Extension einbinden möchte - z.B. in eine Einzelansicht - kann man dies wie folgt erledigen:

include_once(t3lib_extMgm::extPath('rgsmoothgallery').'pi1/class.tx_rgsmoothgallery_pi1.php');
$gal = t3lib_div::makeInstance('tx_rgsmoothgallery_pi1');
$gal->cObj = t3lib_div::makeInstance('tslib_cObj');
$galMarker = $gal->main("", $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_rgsmoothgallery_pi1.']);

Als TypoScript-Setup kann man dabei z.B: das folgende nutzen:

plugin.tx_rgsmoothgallery_pi1 {
  mode = DIRECTORY
  duration = 5000
  startingpoint = fileadmin/here_are_my_images/
  lightbox = 1
  showThumbs = 1
  arrows = 1
  limitImagesDisplayed = 10
}