[TYPO3-templavoila] Disable menuitem List for some pages

Barbara Wijbenga bwijbenga at chello.nl
Thu Mar 18 14:54:18 CET 2010


"Steffen Kamper" <info at sk-typo3.de> wrote in message 
news:mailman.1.1268912555.12156.typo3-project-templavoila at lists.typo3.org...
> please create a bug report. "Add new" buttons for the tables should be 
> possible.

I've reported it.

For the meantime, I changed line 157 of 
mod1/class.tx_templavoila_mod1_records.php from
--------------------------------
   $content = '<tr class="bgColor4"><td colspan="3" style="padding: 0 0 3px 
3px">' . $this->dblist->HTMLcode . '</td></tr>';
--------------------------------
to
--------------------------------
   $content = '<tr class="bgColor4"><td colspan="3" style="padding: 0 0 3px 
3px">' . $this->dblist->HTMLcode;
   if ($this->dblist->HTMLcode=='') {
    $title = $GLOBALS['LANG']->sl($GLOBALS['TCA'][$table]['ctrl']['title']);
    $content .= '<table border="0" cellpadding="0" cellspacing="0" 
class="typo3-dblist">
            <tr  class="c-headLineTable">
             <td nowrap="nowrap" class="" style="padding:0px 0px 4px 
25px;"><span class="c-table">'.$title.'</span> (0)</td>
            </tr>
            <tr  class="c-headLine">
             <td nowrap="nowrap" class="col-icon"><a href="#" 
onclick="window.location.href=\'../../../../typo3/alt_doc.php?returnUrl=\'+T3_THIS_LOCATION+\'&amp;edit['.$table.']['.$_GET['id'].']=new\'; 
return false;"><img 
src="../../../../typo3/sysext/t3skin/icons/gfx/new_el.gif" width="16" 
height="16" title="New record" alt="" /></a></td>
            </tr>
          </table>';
   }
   $content .= '</td></tr>';
--------------------------------

Which seems to work.

Thanks for all the help!
Barbara 



More information about the TYPO3-project-templavoila mailing list