[Typo3] Hide some buttons

tapio tapio.markula at dnainternet.net
Tue Aug 9 08:20:30 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.



More information about the TYPO3-english mailing list