[TYPO3-dev] Rights for Content Elements

Steffen Kamper steffen at dislabs.de
Thu Apr 12 21:29:17 CEST 2007


"Tapio Markula" <tapio.markula at atwebteam.com> schrieb im Newsbeitrag 
news:mailman.1.1176405693.20481.typo3-dev at lists.netfielders.de...
> 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.
>
>

in my opinion no access means no access. So the panel is hidden as well as 
whole click menu for that element.
So the user only sees the element but can't touch it at all.

It should be excluded also in the list of column edit, i have to find the 
place.


> these also
>
>>> 2) Disable link from header
> >> 3) Disable link from sample texts
>
can you give me a clue what links you mean ?
Do you talk from list module ? let's finish page module first.

vg  Steffen

> 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