[Typo3-dev] Adding 'Edit page header link' for 'alt_doc.php'
tapio
tapio.markula at dnainternet.net
Mon Aug 29 22:43:50 CEST 2005
Hi
I tried to add to 'alt_doc.php'
'Edit page header' link, when editing a content element.
Example. I edit in the page '119' content uid '69' and want to
edit 'Edit page header' of the pid '119', but this button/link should
not visible in FE editing (neither should be visible if the edit mode
is 'Edit page header')
if(!isset($_GET['noView'])) /* not finished - missing test, if the
mode is 'Edit page header' - another condition needed */
{
$editPageHeader =
'?returnUrl=alt_doc.php?edit[tt_content]['.$this->elementsData[0]['uid'].']&edit[pages][\''.$this->viewId.'\']=edit';
$panel.='<a class="c-inputButton edit-page-header"
href="'.$editPageHeader.'">'.
'<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/edit2.gif','').'
class="c-inputButton edit-page-header"
title="'.$LANG->getLL('editPageHeader',1).'" alt="" />'.
'</a>';
}
I got just an error message, that I can't edit the records because of
missing date. I just tried to write parametres just using available data
without using some special functions.
More information about the TYPO3-dev
mailing list