set page access automatically
3. June 2011
TSconfig:
TCEMAIN {
# groupId
permissions.groupid = 1
permissions.user = show, editcontent, edit, delete, new
permissions.group = show, editcontent, edit, delete, new
permissions.everybody =
}
using TYPO3 diff-function in frontend extensions
3. June 2011
$t3lib_diff_Obj = t3lib_div::makeInstance('t3lib_diff'); $differenz = $t3lib_diff_Obj->makeDiffDisplay($text1, $text2); $differenz = nl2br($differenz);
get rootline from any page
3. June 2011
$rootline = $GLOBALS['TSFE']->sys_page->getRootLine($uid); $rootline = array_reverse($rootline);
rte in subheader tt_news
3. June 2011
rte in subheader of tt_news
edit typo3conf/extTables.php
<?php t3lib_div::loadTCA('tt_news'); $GLOBALS['TCA']['tt_news']['columns']['short']['config']['softref'] = 'typolink_tag,images,email[subst],url'; $GLOBALS['TCA']['tt_news']['columns']['short']['config']['wizards'] = 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 > } }