[Typo3-dev] Customize ALL buttons!
tapio
tapio.markula at dnainternet.net
Tue Aug 9 08:21:46 CEST 2005
Hi
Is there some TypoScript to hide some buttons in the content editing
view? I added to alt_doc.php extra classes for each button to get full
control to these button.
For example
if ($undoButton) {
$aOnClick =
'document.location=\'show_rechis.php?element='.rawurlencode($this->firstEl['table'].':'.$this->firstEl['uid']).'&revert=ALL_FIELDS&sumUp=-1&returnUrl='.rawurlencode($this->R_URI).'\';
return false;';
$panel.= '<a class="undodoc" href="#"
onclick="'.htmlspecialchars($aOnClick).'">'.
'<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/undo.gif','width="21"
height="16"').' class="c-inputButton undodoc"
title="'.htmlspecialchars(sprintf($LANG->getLL('undoLastChange'),t3lib_BEfunc::calcAge(time()-$undoButtonR['tstamp'],$LANG->sL('LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears')))).'"
alt="" />'.
'</a>';
}
This is in normal usage quite useless can could be hided.
Hiding this with CSS is not the best way because this feature can't be
tailored for each user.
User/User group TypoScipt config would be the best way to control all
kind of buttons.
In general it would be nice, if ALL buttons could be customized.
Also in 'Columns' view could be nice to control with TS, which buttons
are visible. I have controlled also these buttons with CSS.
Tapio Markula
More information about the TYPO3-dev
mailing list