Project

General

Profile

Feature #15162 » 1740.diff

Administrator Admin, 2010-03-24 11:32

View differences:

typo3/sysext/indexed_search/ext_typoscript_setup.txt (working copy)
plugin.tx_indexedsearch {
templateFile = EXT:indexed_search/pi/indexed_search.tmpl
# Date formats for created/modified dates in search results. See PHP date() function. Leave blank for using system defaults
dateFormat {
created =
modified =
}
show {
rules = 1
parsetimes = 0
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php (working copy)
$dateFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'];
$timeFormat = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
$createdFormat = $this->conf['dateFormat.']['created'] ?
$this->conf['dateFormat.']['created'] : $dateFormat;
$modifiedFormat = $this->conf['dateFormat.']['modified'] ?
$this->conf['dateFormat.']['modified'] :
$dateFormat . ' ' . $timeFormat;
$tmplArray['size'] = t3lib_div::formatSize($row['item_size']);
$tmplArray['created'] = date($dateFormat, $row['item_crdate']);
$tmplArray['modified'] = date($dateFormat.' '.$timeFormat, $row['item_mtime']);
$tmplArray['created'] = date($createdFormat, $row['item_crdate']);
$tmplArray['modified'] = date($modifiedFormat, $row['item_mtime']);
$pathId = $row['data_page_id']?$row['data_page_id']:$row['page_id'];
$pathMP = $row['data_page_id']?$row['data_page_mp']:'';
(1-1/2)