get rootline from any page

3. June 2011

0 Kommentare

$rootline = $GLOBALS['TSFE']->sys_page->getRootLine($uid);
$rootline = array_reverse($rootline);

¬ geschrieben von 7masod7 in extensions, TYPO3

rte in subheader tt_news

3. June 2011

0 Kommentare

rte in subheader of tt_news
edit typo3conf/extTables.php

<?php
t3lib_div::loadTCA('tt_news');
$GLOBALS&#91;'TCA'&#93;&#91;'tt_news'&#93;&#91;'columns'&#93;&#91;'short'&#93;&#91;'config'&#93;&#91;'softref'&#93; = 'typolink_tag,images,email&#91;subst&#93;,url';
$GLOBALS&#91;'TCA'&#93;&#91;'tt_news'&#93;&#91;'columns'&#93;&#91;'short'&#93;&#91;'config'&#93;&#91;'wizards'&#93; = array(
	'_PADDING' => 4,
	'RTE' => array(
		'notNewRecords' => 1,
		'RTEonly' => 1,
		'type' => 'script',
		'title' => 'LLL:EXT:lang/locallang_general.php:LGL.subheader',
		'icon' => 'wizard_rte2.gif',
		'script' => 'wizard_rte.php',
	),
);
foreach($GLOBALS['TCA']['tt_news']['types'] as $index => $conf) {
	$GLOBALS['TCA']['tt_news']['types'][$index]['showitem'] = preg_replace('/short([.^,])*,/', 'short;;;richtext:rte_transform[flag=rte_enabled|mode=ts];4-4-4,', $GLOBALS['TCA']['tt_news']['types'][$index]['showitem']);
}
?>

and we need typoscript

plugin.tt_news {
  displayList {
    subheader_stdWrap.stripHtml = 0
    subheader_stdWrap.crop =
    subheader_stdWrap.parseFunc =< lib.parseFunc_RTE
    subheader_stdWrap.outerWrap >
  }
}

¬ geschrieben von 7masod7 in extensions, TYPO3

allow editors to clear cache in backend

28. March 2011

0 Kommentare

TSconfig:

options.clearCache.all = 1
options.clearCache.pages = 1

¬ geschrieben von 7masod7 in TYPO3

FrontendUser

22. March 2011

0 Kommentare

To get information about frontend user in TYPO3:

$GLOBALS['TSFE']->fe_user->user["username"];
t3lib_div::debug($GLOBALS['TSFE']->fe_user->user);

¬ geschrieben von 7masod7 in Uncategorized

add Link to RTE

28. October 2010

0 Kommentare

RTE.default.classesAnchor := addToList(naviLink)

¬ geschrieben von 7masod7 in Uncategorized

get Extensions with svn

15. September 2010

0 Kommentare

To get extensions with svn

svn co https://svn.typo3.org/TYPO3v4/Extensions/extName/trunk/

¬ geschrieben von 7masod7 in Uncategorized

lastUpdate

27. February 2010

0 Kommentare

10.=TEXT
10.data = page:lastUpdated
10.if.isTrue.data = page:lastUpdated
10.date = d.m.Y
10.wrap = <div id="lastupdate"> Aktualisiert am :&nbsp;|</div>

¬ geschrieben von 7masod7 in TYPO3

pidList

22. October 2009

0 Kommentare


$this->pi_getPidList($this->cObj->data['pages'],$this->cObj->data['recursive'])

¬ geschrieben von 7masod7 in Uncategorized

sort fe_groups for backend access field

22. October 2009

0 Kommentare

insert in extTables.php


$TCA['pages']['columns']['fe_group']['config']['size'] = 19;
$TCA['pages']['columns']['fe_group']['config']['foreign_table_where'] = 'ORDER BY fe_groups.title';

¬ geschrieben von 7masod7 in TYPO3

additionalHeaderData

29. September 2009

0 Kommentare


$GLOBALS['TSFE']->additionalHeaderData[$this->extKey]  = '
		<script language="JavaScript" type="text/javascript">
  		</script>';

¬ geschrieben von 7masod7 in TYPO3

Theme von BenediktRB • Powered by Wordpress • Abonniere den RSS Feed