Index: class.tx_templavoila_extdeveval.php
===================================================================
--- class.tx_templavoila_extdeveval.php (revision 27977)
+++ class.tx_templavoila_extdeveval.php (working copy)
@@ -62,18 +62,18 @@
2 => 'Flexible Content Element DS',
0 => 'Unspecified DS',
);
-
-
+
+
// Internal:
var $newFlexFormData = array();
-
+
var $language;
-
-
+
+
/**
* Initialization (none needed)
- *
+ *
* @return void
*/
function init() {
@@ -97,7 +97,7 @@
// Look for a selected data structure:
$dsIdForConversion = t3lib_div::_GP('dsId');
-
+
// Select output:
if (!$dsIdForConversion) {
$output = $this->renderMenuOfDataStructures();
@@ -114,7 +114,7 @@
* @return string HTML content
*/
function renderMenuOfDataStructures() {
-
+
// Get data structures we should display
$arrayOfDS = $this->getDataStructures();
@@ -152,23 +152,6 @@
*/
function getDataStructures() {
- // Select all Data Structures in the PID and put into an array:
- $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
- '*',
- 'tx_templavoila_datastructure',
- 'pid>=0'.
- t3lib_BEfunc::deleteClause('tx_templavoila_datastructure'),
- '',
- 'title'
- );
- $dsRecords = array();
- while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
- $row['_languageMode'] = $this->DSlanguageMode($row['dataprot']);
- if ($row['_languageMode']!='Disabled') {
- $dsRecords[$row['scope']][] = $row;
- }
- }
-
// Select all static Data Structures and add to array:
if (is_array($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures'])) {
foreach($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures'] as $staticDS) {
@@ -183,6 +166,23 @@
$dsRecords[$staticDS['scope']][] = $staticDS;
}
}
+ } else {
+ // Select all Data Structures in the PID and put into an array:
+ $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+ '*',
+ 'tx_templavoila_datastructure',
+ 'pid>=0'.
+ t3lib_BEfunc::deleteClause('tx_templavoila_datastructure'),
+ '',
+ 'title'
+ );
+ $dsRecords = array();
+ while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
+ $row['_languageMode'] = $this->DSlanguageMode($row['dataprot']);
+ if ($row['_languageMode']!='Disabled') {
+ $dsRecords[$row['scope']][] = $row;
+ }
+ }
}
return $dsRecords;
@@ -232,8 +232,8 @@
$DStitle = $row['title'];
}
}
-
- // Define which method you should use
+
+ // Define which method you should use
if($language == 'Inheritance'){
$traverseMethod = 'traverseFlexFormXMLData_callBackFunction_Inheritance';
} elseif ($language == 'Separate') {
@@ -241,13 +241,13 @@
} elseif ($language == 'Disabled') {
$traverseMethod = 'traverseFlexFormXMLData_callBackFunction_Disabled';
}
-
+
// If POST, then update in database
if(is_array($SET = t3lib_div::_POST('SET'))){
-
+
if(in_array($SET['ds']['table'], array_keys($TCA)))
$setTable = $SET['ds']['table'];
-
+
$setField = $SET['ds']['field'];
foreach($SET['content'] as $key => $val){
if($val){
@@ -255,24 +255,24 @@
if($dbRes = $GLOBALS['TYPO3_DB']->sql_query($dbQuery)){
if(mysql_num_rows($dbRes) == 1){
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($dbRes);
-
+
$this->newFlexFormData = array();
$flexObj = t3lib_div::makeInstance('t3lib_flexformtools');
$flexObj->reNumberIndexesOfSectionData = TRUE;
$flexObj->traverseFlexFormXMLData($setTable,$setField,$row,$this,$traverseMethod);
- $dbQuery = "UPDATE $setTable
+ $dbQuery = "UPDATE $setTable
SET $setField='".addslashes($flexObj->flexArray2Xml($this->newFlexFormData))."'
WHERE uid='".(int) $key."' ";
-
+
if(!$dbRes = $GLOBALS['TYPO3_DB']->sql_query($dbQuery)){
print mysql_error();
- }
+ }
}
}
- }
+ }
}
}
-
+
// First, find all flexform fields where we could find relations to data structures:
$fieldsToCheck = array();
foreach($TCA as $table => $tmp) {
@@ -303,7 +303,7 @@
if (count($rows)) {
foreach($rows as $row) {
-
+
// Set up result array:
$this->newFlexFormData = array();
@@ -312,20 +312,20 @@
$flexObj->reNumberIndexesOfSectionData = TRUE;
$flexObj->traverseFlexFormXMLData($table,$field,$row,$this,$traverseMethod);
- /*
+ /*
debug(t3lib_div::xml2array($row[$field]),'Old: '.$language);
debug($this->newFlexFormData,'New: '.$language);
debug(array($flexObj->flexArray2Xml($this->newFlexFormData)));
- */
-
+ */
+
if(t3lib_div::xml2array($row[$field]) === $this->newFlexFormData){
$checked = NULL;
- $bgColor = 'bgColor3';
+ $bgColor = 'bgColor3';
} else {
$checked = 'checked';
$bgColor = 'bgColor4';
}
-
+
// then add a new line
$htmlTABLE .= '
|
@@ -334,7 +334,7 @@
'.(!empty($row['header']) ? $row['header'] : 'no header').' |
';
}
-
+
// build the Table
$htmlTABLE = '
+ ';
+ if ($this->staticDS) {
+ $onClick = 'return top.openUrlInWindow(\'' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $toREC['datastructure'] . '\',\'FileView\');';
+ $tRows[]='
|
+ ' . $GLOBALS['LANG']->getLL('renderDSO_XML') . ': |
+ '.htmlspecialchars($toREC['datastructure']).' |
+
';
+ } else {
+ $tRows[]='
+
+ |
' . $GLOBALS['LANG']->getLL('renderTO_dsRecord') . ': |
' . ($dsREC ? htmlspecialchars($dsREC['title']) : $GLOBALS['LANG']->getLL('mappingNEW')) . ' |
-
+ ';
+ }
- ';
// Write header of page:
$content.='
@@ -858,15 +901,29 @@
// Template Object records:
$opt=array();
$opt[]='';
- $res = $TYPO3_DB->exec_SELECTquery (
- 'tx_templavoila_tmplobj.*,tx_templavoila_datastructure.scope',
- 'tx_templavoila_tmplobj LEFT JOIN tx_templavoila_datastructure ON tx_templavoila_datastructure.uid=tx_templavoila_tmplobj.datastructure',
- 'tx_templavoila_tmplobj.pid IN ('.$this->storageFolders_pidList.') AND tx_templavoila_tmplobj.datastructure>0 '.
- t3lib_BEfunc::deleteClause('tx_templavoila_tmplobj').
- t3lib_BEfunc::versioningPlaceholderClause('tx_templavoila_tmplobj'),
- '',
- 'tx_templavoila_datastructure.scope, tx_templavoila_tmplobj.title'
- );
+ if ($this->staticDS) {
+ $res = $TYPO3_DB->exec_SELECTquery (
+ '*, CASE WHEN LOCATE(' . $GLOBALS['TYPO3_DB']->fullQuoteStr('(fce)', 'tx_templavoila_tmplobj') . ', datastructure)>0 THEN 2 ELSE 1 END scope',
+ 'tx_templavoila_tmplobj',
+ 'pid IN ('.$this->storageFolders_pidList.') AND datastructure!=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('', 'tx_templavoila_tmplobj') .
+ t3lib_BEfunc::deleteClause('tx_templavoila_tmplobj').
+ t3lib_BEfunc::versioningPlaceholderClause('tx_templavoila_tmplobj'),
+ '',
+ 'scope,title'
+ );
+
+ } else {
+ $res = $TYPO3_DB->exec_SELECTquery (
+ 'tx_templavoila_tmplobj.*,tx_templavoila_datastructure.scope',
+ 'tx_templavoila_tmplobj LEFT JOIN tx_templavoila_datastructure ON tx_templavoila_datastructure.uid=tx_templavoila_tmplobj.datastructure',
+ 'tx_templavoila_tmplobj.pid IN ('.$this->storageFolders_pidList.') AND tx_templavoila_tmplobj.datastructure>0 '.
+ t3lib_BEfunc::deleteClause('tx_templavoila_tmplobj').
+ t3lib_BEfunc::versioningPlaceholderClause('tx_templavoila_tmplobj'),
+ '',
+ 'tx_templavoila_datastructure.scope, tx_templavoila_tmplobj.title'
+ );
+
+ }
$sFolder = '';
$optGroupOpen = false;
while(false !== ($row = $TYPO3_DB->sql_fetch_assoc($res))) {
@@ -1023,7 +1080,7 @@
*/
function renderDSO() {
global $TYPO3_DB;
- if (intval($this->displayUid)>0) {
+ if (intval($this->displayUid)>0) { // TODO: static ds support
$row = t3lib_BEfunc::getRecordWSOL('tx_templavoila_datastructure',$this->displayUid);
if (is_array($row)) {
@@ -1242,6 +1299,20 @@
' . $GLOBALS['LANG']->getLL('renderTO_dsFile') . ': |
'.htmlspecialchars($relFilePath).' |
';
+ $onCl = 'index.php?file=' . rawurlencode($theFile) . '&_load_ds_xml=1&_load_ds_xml_to=' . $row['uid'] . '&uid=' . rawurlencode($DSOfile) . '&returnUrl=' . $this->returnUrl;
+ $onClMsg = '
+ if (confirm(unescape(\''.rawurlencode($GLOBALS['LANG']->getLL('renderTO_updateWarningConfirm')).'\'))) {
+ document.location=\''.$onCl.'\';
+ }
+ return false;
+ ';
+ $tRows[]='
+
+ |
+ '.
+ $this->cshItem('xMOD_tx_templavoila','mapping_to_modifyDSTO',$this->doc->backPath,'').
+ ' |
+
';
// Read Data Structure:
$dataStruct = $this->getDataStructFromDSO('',$DSOfile);
Index: ext_conf_template.txt
===================================================================
--- ext_conf_template.txt (revision 27987)
+++ ext_conf_template.txt (working copy)
@@ -1,8 +1,20 @@
- # cat=basic/enable; type=boolean; label=Enable the classic Page module:Check this box to enable classic Page module in the list of modules.
+ # cat=basic/enable; type=boolean; label=LLL:EXT:templavoila/res1/language/template_conf.xml:enable.oldPageModule
enable.oldPageModule = 0
- # cat=basic/enable; type=boolean; label=Enable data source selection:If this checkbox is checked, page and content elements will have data source selector as they had in older TemplaVoila versions. If current installation has very few template objects, it is recommended to have this checkbox unchecked.
+ # cat=basic/enable; type=boolean; label=LLL:EXT:templavoila/res1/language/template_conf.xml:enable.selectDataSource
enable.selectDataSource = 0
- # cat=basic/enable; type=boolean; label=Enable Header for FCE's:If this checkbox is checked the header of Content Element type FCE will be rendered like headers of other Content Elements.
+ # cat=basic/enable; type=boolean; label=LLL:EXT:templavoila/res1/language/template_conf.xml:enable.renderFCEHeader
enable.renderFCEHeader = 0
+
+ # cat=static DS; type=boolean; label=LLL:EXT:templavoila/res1/language/template_conf.xml:staticDS.enable
+staticDS.enable = 0
+
+ #cat=static DS;type=string;label=LLL:EXT:templavoila/res1/language/template_conf.xml:staticDS.path_fce
+staticDS.path_fce = fileadmin/templates/ds/fce/
+
+ #cat=static DS;type=string;label=LLL:EXT:templavoila/res1/language/template_conf.xml:staticDS.path_page
+staticDS.path_page = fileadmin/templates/ds/page/
+
+ #cat=static DS;type=user[EXT:templavoila/classes/class.tx_staticdstools.php:&tx_staticDStools->staticDsWizard];label=LLL:EXT:templavoila/res1/language/template_conf.xml:staticDS.wizard
+staticDS.wizard =
Index: ext_tables.php
===================================================================
--- ext_tables.php (revision 27977)
+++ ext_tables.php (working copy)
@@ -42,6 +42,12 @@
t3lib_extMgm::extPath($_EXTKEY).'class.tx_templavoila_extdeveval.php',
'TemplaVoila L10N Mode Conversion Tool'
);
+
+ // Static DS
+ if ($_EXTCONF['staticDS.']['enable']) {
+ include_once(t3lib_extMgm::extPath('templavoila') . 'classes/class.tx_staticdstools.php');
+ tx_staticDStools::readStaticDsFilesIntoArray($_EXTCONF);
+ }
}
// Adding tables:
Index: mod1/db_new_content_el.php
===================================================================
--- mod1/db_new_content_el.php (revision 27977)
+++ mod1/db_new_content_el.php (working copy)
@@ -407,23 +407,23 @@
$dataStructureRecords = array();
$storageFolderPID = $this->apiObj->getStorageFolderPid($positionPid);
- // Fetch data structures stored in the database:
- $addWhere = $this->buildRecordWhere('tx_templavoila_datastructure');
- $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_templavoila_datastructure', 'pid=' . intval($storageFolderPID) . ' AND scope=2' . $addWhere . t3lib_BEfunc::deleteClause('tx_templavoila_datastructure') . t3lib_BEfunc::versioningPlaceholderClause('tx_templavoila_datastructure'));
- while ( FALSE !== ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) ) {
- $dataStructureRecords[$row['uid']] = $row;
- }
-/*
- // Fetch static data structures which are stored in XML files:
- if (is_array($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures'])) {
+ if (is_array($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures'])) {
+ // Fetch static data structures which are stored in XML files:
foreach($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures'] as $staticDataStructureArr) {
$staticDataStructureArr['_STATIC'] = TRUE;
$dataStructureRecords[$staticDataStructureArr['path']] = $staticDataStructureArr;
}
+ } else {
+ // Fetch data structures stored in the database:
+ $addWhere = $this->buildRecordWhere('tx_templavoila_datastructure');
+ $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_templavoila_datastructure', 'pid=' . intval($storageFolderPID) . ' AND scope=2' . $addWhere . t3lib_BEfunc::deleteClause('tx_templavoila_datastructure') . t3lib_BEfunc::versioningPlaceholderClause('tx_templavoila_datastructure'));
+ while ( FALSE !== ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) ) {
+ $dataStructureRecords[$row['uid']] = $row;
+ }
}
-*/
+
// Fetch all template object records which uare based one of the previously fetched data structures:
$templateObjectRecords = array();
$recordDataStructure = array();
Index: mod1/index.php
===================================================================
--- mod1/index.php (revision 28205)
+++ mod1/index.php (working copy)
@@ -152,6 +152,9 @@
var $sortableContainers = array(); // Contains the containers for drag and drop
var $sortableItems = array(); // Registry for all id => flexPointer-Pairs
+ var $extConf; // holds the extconf configuration
+ var $staticDS = FALSE; // Boolean; if true DS records are file based
+
var $blindIcons = array(); // Icons which shouldn't be rendered by configuration, can contain elements of "new,edit,copy,cut,ref,paste,browse,delete,makeLocal,unlink,hide"
protected $debug = FALSE;
@@ -177,6 +180,9 @@
$this->modSharedTSconfig = t3lib_BEfunc::getModTSconfig($this->id, 'mod.SHARED');
$this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::_GP('SET'), $this->MCONF['name']);
+ $this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['templavoila']);
+ $this->staticDS = ($this->extConf['staticDS.']['enable']);
+
$this->altRoot = t3lib_div::_GP('altRoot');
$this->versionId = t3lib_div::_GP('versionId');
@@ -950,11 +956,18 @@
$beTemplate = t3lib_div::getURL(PATH_site . $toRecord['belayout']);
} else {
// when TO doesn't have the beLayout look in DS record
+ if ($this->staticDS) {
+ $beLayoutFile = PATH_site . substr($toRecord['datastructure'], 0, -3) . 'html';
+ if ($toRecord['datastructure'] && file_exists($beLayoutFile)) {
+ $beTemplate = t3lib_div::getURL($beLayoutFile);
+ }
+ } else {
$dsRecord = t3lib_BEfunc::getRecordWSOL('tx_templavoila_datastructure', $toRecord['datastructure'], 'belayout');
if ($dsRecord['belayout']) {
$beTemplate = t3lib_div::getURL(PATH_site . $dsRecord['belayout']);
}
}
+ }
// no layout, no special rendering
$flagRenderBeLayout = $beTemplate? TRUE : FALSE;
Index: mod2/index.php
===================================================================
--- mod2/index.php (revision 27977)
+++ mod2/index.php (working copy)
@@ -115,8 +115,8 @@
var $errorsWarnings=array();
var $cm1Link = '../cm1/index.php';
-
+
function init() {
parent::init();
$this->templatesDir = $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] . 'templates/';
@@ -322,7 +322,7 @@
if ($path) {
$tRows[] = '
- ' .
+ | ' .
t3lib_iconWorks::getIconImage('pages', t3lib_BEfunc::getRecord('pages', $pid), $this->doc->backPath, 'class="absmiddle" title="'. htmlspecialchars($alttext) . '"') .
htmlspecialchars($path).' |
'.htmlspecialchars($stat['DS']).' |
@@ -348,27 +348,29 @@
function renderModuleContent_mainView() {
global $LANG;
- // Select all Data Structures in the PID and put into an array:
- $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
- '*',
- 'tx_templavoila_datastructure',
- 'pid='.intval($this->id).t3lib_BEfunc::deleteClause('tx_templavoila_datastructure'),
- '',
- 'title'
- );
- $dsRecords = array();
- while($res && false !== ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))) {
- t3lib_BEfunc::workspaceOL('tx_templavoila_datastructure',$row);
- $dsRecords[$row['scope']][] = $row;
- }
- $GLOBALS['TYPO3_DB']->sql_free_result($res);
+
// Select all static Data Structures and add to array:
if (is_array($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures'])) {
foreach($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures'] as $staticDS) {
$staticDS['_STATIC'] = 1;
$dsRecords[$staticDS['scope']][] = $staticDS;
}
+ } else {
+ // Select all Data Structures in the PID and put into an array:
+ $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
+ '*',
+ 'tx_templavoila_datastructure',
+ 'pid='.intval($this->id).t3lib_BEfunc::deleteClause('tx_templavoila_datastructure'),
+ '',
+ 'title'
+ );
+ $dsRecords = array();
+ while($res && false !== ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))) {
+ t3lib_BEfunc::workspaceOL('tx_templavoila_datastructure',$row);
+ $dsRecords[$row['scope']][] = $row;
+ }
+ $GLOBALS['TYPO3_DB']->sql_free_result($res);
}
// Select all Template Records in PID:
@@ -605,12 +607,12 @@
// Put together the records icon including content sensitive menu link wrapped around it:
$recordIcon = t3lib_iconWorks::getIconImage('tx_templavoila_datastructure',$dsR,$this->doc->backPath,'class="absmiddle"');
$recordIcon = $this->doc->wrapClickMenuOnIcon($recordIcon, 'tx_templavoila_datastructure', $dsR['uid'], 1, '&callingScriptId='.rawurlencode($this->doc->scriptID));
-
+
// Preview icon:
if ($dsR['previewicon']) {
if (isset($this->modTSconfig['properties']['dsPreviewIconThumb']) && $this->modTSconfig['properties']['dsPreviewIconThumb'] != '0') {
- $icon = t3lib_BEfunc::getThumbNail($this->doc->backPath . 'thumbs.php', PATH_site . 'uploads/tx_templavoila/' . $dsR['previewicon'],
- 'hspace="5" vspace="5" border="1"',
+ $icon = t3lib_BEfunc::getThumbNail($this->doc->backPath . 'thumbs.php', PATH_site . 'uploads/tx_templavoila/' . $dsR['previewicon'],
+ 'hspace="5" vspace="5" border="1"',
strpos($this->modTSconfig['properties']['dsPreviewIconThumb'], 'x') ? $this->modTSconfig['properties']['dsPreviewIconThumb'] : '');
} else {
$icon = '';
@@ -679,13 +681,14 @@
} else { // DS was a file:
// XML file icon:
- $recordIcon = 'doc->backPath,'gfx/fileicons/xml.gif','width="18" height="16"').' alt="" class="absmiddle" />';
+ $onClick = 'document.location=\'' . $this->doc->backPath . 'file_edit.php?target=' . rawurlencode(PATH_site . $dsR['path']) . '&returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')) . '\';';
+ $recordIcon = 'doc->backPath,'gfx/fileicons/xml.gif','width="18" height="16"').' alt="" class="absmiddle" />';
// Preview icon:
if ($dsR['icon'] && $iconPath = t3lib_div::getFileAbsFileName($dsR['icon'])) {
if (isset($this->modTSconfig['properties']['dsPreviewIconThumb']) && $this->modTSconfig['properties']['dsPreviewIconThumb'] != '0') {
- $icon = t3lib_BEfunc::getThumbNail($this->doc->backPath . 'thumbs.php', PATH_site . 'uploads/tx_templavoila/' . $dsR['previewicon'],
- 'hspace="5" vspace="5" border="1"',
+ $icon = t3lib_BEfunc::getThumbNail($this->doc->backPath . 'thumbs.php', PATH_site . 'uploads/tx_templavoila/' . $dsR['previewicon'],
+ 'hspace="5" vspace="5" border="1"',
strpos($this->modTSconfig['properties']['dsPreviewIconThumb'], 'x') ? $this->modTSconfig['properties']['dsPreviewIconThumb'] : '');
} else {
$icon = '';
@@ -779,7 +782,7 @@
if ($toObj['previewicon']) {
if (isset($this->modTSconfig['properties']['toPreviewIconThumb']) && $this->modTSconfig['properties']['toPreviewIconThumb'] != '0') {
$icon = t3lib_BEfunc::getThumbNail($this->doc->backPath . 'thumbs.php', PATH_site . 'uploads/tx_templavoila/' . $toObj['previewicon'],
- 'hspace="5" vspace="5" border="1"',
+ 'hspace="5" vspace="5" border="1"',
strpos($this->modTSconfig['properties']['toPreviewIconThumb'], 'x') ? $this->modTSconfig['properties']['toPreviewIconThumb'] : '');
} else {
$icon = '';
@@ -1292,8 +1295,8 @@
// TEMPLATE ARCHIVE:
if ($this->modTSconfig['properties']['templatePath']) {
- $paths = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['templatePath'], true);
- $prefix = t3lib_div::getFileAbsFileName($GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir']);
+ $paths = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['templatePath'], true);
+ $prefix = t3lib_div::getFileAbsFileName($GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir']);
if (count($paths) > 0 && is_array($GLOBALS['FILEMOUNTS'])) {
foreach($GLOBALS['FILEMOUNTS'] as $mountCfg) {
// look in paths if it's part of mounted path
@@ -1301,9 +1304,9 @@
$files = array();
foreach ($paths as $path) {
if (t3lib_div::isFirstPartOfStr($prefix . $path, $mountCfg['path'])) {
- $isPart = true;
+ $isPart = true;
$files = array_merge(t3lib_div::getFilesInDir($prefix . $path, 'html,htm,tmpl',1), $files);
- }
+ }
}
if ($isPart) {
// USED FILES:
@@ -1314,7 +1317,7 @@
Usage count |
New DS/TO |
';
-
+
$i = 0;
foreach($files as $tFile) {
$tRows[] = '
Index: res1/language/template_conf.xml
===================================================================
--- res1/language/template_conf.xml (revision 0)
+++ res1/language/template_conf.xml (revision 0)
@@ -0,0 +1,42 @@
+
+
+
+ Language file for TV template settings
+ module
+
+ EXT:templavoila/res1/language/template_conf.xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file