Skip to content

Commit

Permalink
[FEATURE] Using a checkbox in the YAG extension configuration, you ca…
Browse files Browse the repository at this point in the history
…n now configure YAG to flush its resolution file cache with the TYPO3 cache clear command.
  • Loading branch information
daniellienert committed Apr 3, 2013
1 parent f31ebd2 commit 12e78ff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
9 changes: 6 additions & 3 deletions ext_conf_template.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# cat=basic; type=string; label=Path of directory where YAG should store all cached images generated for albums - relative to Typo3 base path. This path should not be changed unless you know what you do! (Image base path)
# cat=basic; type=string; label=Path of directory where YAG should store all cached images generated for albums - relative to Typo3 base path. This path should not be changed unless you know what you do! (Image base path)
hashFilesystemRoot = typo3temp/yag

# cat=basic; type=string; label=Path of directory where YAG stores all original files.
origFilesRoot = fileadmin/yag
# cat=basic; type=string; label=Path of directory where YAG stores all original files.
origFilesRoot = fileadmin/yag

# cat=basic; type=boolean; label=Clear the resolution file cache with the TYPO3 cache clear command.
clearResFileCacheWithCacheClearCommand = false
16 changes: 14 additions & 2 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,34 @@
);



if(TYPO3_MODE == 'BE') {
$yagExtConfig = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['yag']);

// Hooks
$TYPO3_CONF_VARS['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['yag_pi1']['yag'] = 'EXT:yag/Classes/Hooks/CMSLayoutHook.php:user_Tx_Yag_Hooks_CMSLayoutHook->getExtensionSummary';

// Clear resFileCache with clearCacheCommand
if((int) $yagExtConfig['clearResFileCacheWithCacheClearCommand'] === 1) {
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_yag_domain_model_resolutionfilecache'] = 'tx_yag_domain_model_resolutionfilecache';
}

// Flexform general
require_once t3lib_extMgm::extPath('yag').'Classes/Utility/Flexform/Div.php';


// Flexform typoScript data provider
require_once t3lib_extMgm::extPath('yag').'Classes/Utility/Flexform/TyposcriptDataProvider.php';

// Flexform record selctor


// Flexform record selector
require_once t3lib_extMgm::extPath('yag').'Classes/Utility/Flexform/RecordSelector.php';
$TYPO3_CONF_VARS['BE']['AJAX']['txyagM1::getGalleryList'] = t3lib_extMgm::extPath('yag').'Classes/Utility/Flexform/RecordSelector.php:user_Tx_Yag_Utility_Flexform_RecordSelector->getGallerySelectList';
$TYPO3_CONF_VARS['BE']['AJAX']['txyagM1::getAlbumList'] = t3lib_extMgm::extPath('yag').'Classes/Utility/Flexform/RecordSelector.php:user_Tx_Yag_Utility_Flexform_RecordSelector->getAlbumSelectList';
$TYPO3_CONF_VARS['BE']['AJAX']['txyagM1::getImageList'] = t3lib_extMgm::extPath('yag').'Classes/Utility/Flexform/RecordSelector.php:user_Tx_Yag_Utility_Flexform_RecordSelector->getImageSelectList';
$TYPO3_CONF_VARS['BE']['AJAX']['yagAjaxDispatcher'] = t3lib_extMgm::extPath('yag').'Classes/Utility/AjaxDispatcher.php:Tx_Yag_Utility_AjaxDispatcher->dispatch';


}

?>

0 comments on commit 12e78ff

Please sign in to comment.