Index: mod1/index.php =================================================================== --- mod1/index.php (revision 27884) +++ mod1/index.php (working copy) @@ -469,6 +469,8 @@ // Start creating HTML output $this->content .= $this->doc->startPage($LANG->getLL('title')); $render_editPageScreen = true; + + // Show message if the page is of a special doktype: if ($this->rootElementTable == 'pages') { @@ -500,8 +502,32 @@ } if ($render_editPageScreen) { + $editCurrentPageHTML = ''; + + // warn if page renders content from other page + if ($this->rootElementRecord['content_from_pid']) { + $contentPage = t3lib_BEfunc::getRecord('pages', intval($this->rootElementRecord['content_from_pid'])); + $title = t3lib_BEfunc::getRecordTitle('pages', $contentPage); + $linkToPid = 'index.php?id=' . intval($this->rootElementRecord['content_from_pid']); + $link = '' . htmlspecialchars($title) . ' (PID ' . intval($this->rootElementRecord['content_from_pid']) . ')'; + if (t3lib_div::compat_version('4.3')) { + $flashMessage = t3lib_div::makeInstance( + 't3lib_FlashMessage', + '', + sprintf($LANG->getLL('content_from_pid_title'), $link), + t3lib_FlashMessage::INFO + ); + $editCurrentPageHTML = $flashMessage->render(); + } else { + $editCurrentPageHTML = '
' . + $this->doc->icons(2) . ' ' . + sprintf($LANG->getLL('content_from_pid_title'), $link) . + '
'; + } + + } // Render "edit current page" (important to do before calling ->sideBarObj->render() - otherwise the translation tab is not rendered! - $editCurrentPageHTML = $this->render_editPageScreen(); + $editCurrentPageHTML .= $this->render_editPageScreen(); if (t3lib_div::_GP('ajaxUnlinkRecord')) { $this->render_editPageScreen(); Index: mod1/locallang.xml =================================================================== --- mod1/locallang.xml (revision 27884) +++ mod1/locallang.xml (working copy) @@ -101,6 +101,7 @@ + \ No newline at end of file Index: mod1/pagemodule.css =================================================================== --- mod1/pagemodule.css (revision 27885) +++ mod1/pagemodule.css (working copy) @@ -8,7 +8,25 @@ cursor:move; } +/* warning */ +div.warning { + background-color:#ddeef9; + border-color:#8aafc4; + border:1px solid; + margin: 4px 0; + padding:6px; + font-weight: bold; + font-size: 11px; +} +div.warning img { + vertical-align: middle; + padding: 2px 1px; +} +div.warning a { + text-decoration: underline; +} + /* link icons */ .tpm-bottom-controls { margin-bottom: 5px;