2 namespace TYPO3\CMS\Backend\Controller\ContentElement;
85 parent::__construct();
104 $this->moveUid = $this->input_moveUid ? $this->input_moveUid :
$this->page_id;
107 $this->perms_clause = $this->
getBackendUser()->getPagePermsClause(1);
108 $this->content =
'<h1>' . $this->
getLanguageService()->getLL(
'movingElement') .
'</h1>';
123 $this->moduleTemplate->setContent($this->content);
124 $response->
getBody()->write($this->moduleTemplate->renderContent());
136 if ($this->page_id) {
138 $this->moduleTemplate->getPageRenderer()->loadRequireJsModule(
'TYPO3/CMS/Backend/Tooltip');
146 $headerLine .=
'<div><input type="hidden" name="makeCopy" value="0" />' .
'<input type="checkbox" name="makeCopy" id="makeCopy" value="1"' . ($this->makeCopy ?
' checked="checked"' :
'') .
' onclick="' . htmlspecialchars($onClick) .
'" /> <label for="makeCopy" class="t3-label-valign-top">' .
$lang->getLL(
'makeCopy', 1) .
'</label></div>';
148 $this->content .=
'<div>' . $headerLine .
'</div>';
152 if ((
string)$this->table ==
'pages') {
155 if (is_array($pageInfo) && $backendUser->isInWebMount($pageInfo[
'pid'], $this->perms_clause)) {
158 $posMap->moveOrCopy = $this->makeCopy ?
'copy' :
'move';
160 if ($pageInfo[
'pid']) {
162 if (is_array($pidPageInfo)) {
163 if ($backendUser->isInWebMount($pidPageInfo[
'pid'], $this->perms_clause)) {
171 $code .= $posMap->positionTree($this->page_id, $pageInfo, $this->perms_clause, $this->R_URI);
175 if ((
string)$this->table ==
'tt_content') {
179 if (!$this->input_moveUid) {
180 $this->page_id = $tt_content_rec[
'pid'];
184 if (is_array($pageInfo) && $backendUser->isInWebMount($pageInfo[
'pid'], $this->perms_clause)) {
187 $posMap->moveOrCopy = $this->makeCopy ?
'copy' :
'move';
191 . $this->moduleTemplate->getIconFactory()->getIconForRecord(
195 )->render() .
'</span>';
201 $colPosIds = array();
202 foreach ($colPosArray as $colPos) {
203 $colPosIds[] = $colPos[1];
206 $colPosList = implode(
',', array_unique($colPosIds));
208 $code = $headerLine .
'<br />';
209 $code .= $posMap->printContentElementColumns($this->page_id, $this->moveUid, $colPosList, 1, $this->R_URI);
211 $code .=
'<br /><br />';
212 if ($pageInfo[
'pid']) {
214 if (is_array($pidPageInfo)) {
215 if ($backendUser->isInWebMount($pidPageInfo[
'pid'], $this->perms_clause)) {
217 'uid' => (
int)$pageInfo[
'pid'],
218 'moveUid' => $this->moveUid
226 $code .= $posMap->positionTree($this->page_id, $pageInfo, $this->perms_clause, $this->R_URI);
230 $this->content .=
'<h2>' .
$lang->getLL(
'selectPositionOfElement') .
'</h2>';
231 $this->content .=
'<div>' . $code .
'</div>';
236 $this->moduleTemplate->setTitle(
$lang->getLL(
'movingElement'));
256 $buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar();
257 if ($this->page_id) {
258 if ((
string)$this->table ==
'pages') {
259 $cshButton = $buttonBar->makeHelpButton()
260 ->setModuleName(
'xMOD_csh_corebe')
261 ->setFieldName(
'move_el_pages');
262 $buttonBar->addButton($cshButton);
263 }
elseif ((
string)$this->table ==
'tt_content') {
264 $cshButton = $buttonBar->makeHelpButton()
265 ->setModuleName(
'xMOD_csh_corebe')
266 ->setFieldName(
'move_el_cs');
267 $buttonBar->addButton($cshButton);
271 $backButton = $buttonBar->makeLinkButton()
272 ->setHref($this->R_URI)
274 ->setIcon($this->moduleTemplate->getIconFactory()->getIcon(
275 'actions-view-go-back',
278 $buttonBar->addButton($backButton);