[TYPO3-dev] Rights for Content Elements
Tapio Markula
tapio.markula at atwebteam.com
Thu Apr 12 21:21:59 CEST 2007
Steffen Kamper kirjoitti:
> i started it in bt:
> http://bugs.typo3.org/view.php?id=5412
>
> diff of 2 patches included.
What button you disabled?
I put edit,hide and delete as disabled concerning default buttons
+ copy and cut from my extra buttons.
Because up/down relates to other elements and other
elements can move position, those are reasonable to stay.
these also
>> 2) Disable link from header
>> 3) Disable link from sample texts
they are inside the following function
function tt_content_drawItem($row, $isRTE=FALSE) {
global $TCA;
$out='';
$outHeader='';
// Make header:
if ($row['header'] && $row['header_layout']!=100) {
$infoArr = Array();
$this->getProcessedValue('tt_content','header_position,header_layout,header_link',$row,$infoArr);
$outHeader= ($row['date'] ?
htmlspecialchars($this->itemLabels['date'].'
'.t3lib_BEfunc::date($row['date'])).'<br />':'').
$this->infoGif($infoArr).
'<b>'.$this->linkEditContent($this->renderText($row['header']),$row).'</b><br
/>';
}
The latter is inconvenient.
Needs conditions almost to all cases
// Make content:
$infoArr=Array();
switch($row['CType']) {
case 'header':
if ($row['subheader']) {
$this->getProcessedValue('tt_content','layout',$row,$infoArr);
$out.= $this->infoGif($infoArr).
$this->linkEditContent($this->renderText($row['subheader']),$row).'<br />';
}
break;
BTW. clipboard functionality (copy,cut and paste) should add also as patch,
but maybe B. Kraft has better proposal for those
More information about the TYPO3-dev
mailing list