Feature #23156 » 15086.diff
typo3/sysext/indexed_search/ext_typoscript_setup.txt (working copy) | ||
---|---|---|
modified =
|
||
}
|
||
pathCharacter = / |*| / |*|  
|
||
show {
|
||
rules = 1
|
||
parsetimes = 0
|
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php (working copy) | ||
---|---|---|
$sectionTitleLinked = $this->pi_getLL('unnamedSection','',1).':';
|
||
} else {
|
||
$onclick = 'document.'.$this->prefixId.'[\''.$this->prefixId.'[_sections]\'].value=\''.$theRLid.'\';document.'.$this->prefixId.'.submit();return false;';
|
||
$sectionTitleLinked = '<a href="#" onclick="'.htmlspecialchars($onclick).'">'.htmlspecialchars($sectionName).':</a>';
|
||
$sectionTitleLinked = '<a href="#" onclick="'.htmlspecialchars($onclick).'">'.$sectionName.':</a>';
|
||
}
|
||
$this->resultSections[$id] = array($sectionName,count($resultRows));
|
||
... | ... | |
htmlspecialchars($row['data_filename']) .
|
||
'</a>';
|
||
} else {
|
||
$pathStr = htmlspecialchars($this->getPathFromPageId($pathId,$pathMP));
|
||
$pathStr = $this->getPathFromPageId($pathId,$pathMP);
|
||
$tmplArray['path'] = $this->linkPage($pathId,$pathStr,array(
|
||
'cHashParams' => $row['cHashParams'],
|
||
'data_page_type' => $row['data_page_type'],
|
||
... | ... | |
*
|
||
* @param integer Page ID
|
||
* @param string MP variable content
|
||
* @return string Path
|
||
* @return string Path (HTML-escaped)
|
||
*/
|
||
function getPathFromPageId($id,$pathMP='') {
|
||
... | ... | |
$rl = $this->getRootLine($id,$pathMP);
|
||
$hitRoot = 0;
|
||
$path = '';
|
||
if (is_array($rl) && count($rl)) {
|
||
$pageCount = count($rl);
|
||
if (is_array($rl) && $pageCount) {
|
||
$index = 0;
|
||
$pathSeparator = isset($this->conf['pathCharacter']) ? $this->conf['pathCharacter'] : '/';
|
||
$pathSeparators = $GLOBALS['TSFE']->tmpl->splitConfArray(
|
||
array('separator' => $pathSeparator), $pageCount);
|
||
foreach ($rl as $k => $v) {
|
||
// Check fe_user
|
||
if ($v['fe_group'] && ($v['uid']==$id || $v['extendToSubpages'])) {
|
||
$this->fe_groups_required[$id][]=$v['fe_group'];
|
||
... | ... | |
if ($v['uid']==$GLOBALS['TSFE']->config['rootLine'][0]['uid']) {
|
||
break;
|
||
}
|
||
$path = '/'.$v['title'].$path;
|
||
$path = $pathSeparators[$index]['separator'] . htmlspecialchars($v['title']) . $path;
|
||
$index++;
|
||
}
|
||
if (isset($this->conf['pathCharacter'])) {
|
||
$path .= $pathSeparators[$index]['separator'];
|
||
}
|
||
}
|
||
$this->cache_path[$identStr] = $path;
|