Index: Classes/Controller/ReviewController.php =================================================================== --- Classes/Controller/ReviewController.php (revision 4104) +++ Classes/Controller/ReviewController.php (working copy) @@ -65,6 +65,7 @@ $this->view->assign('workspaceList', $wsList); $this->view->assign('activeWorkspaceUid', $activeWorkspace); $this->view->assign('activeWorkspaceTitle', tx_Workspaces_Service_Workspaces::getWorkspaceTitle($activeWorkspace)); + $this->view->assign('showPreviewLink', $wsService->canCreatePreviewLink( t3lib_div::_GP('id'), $activeWorkspace)); $GLOBALS['BE_USER']->setAndSaveSessionData('tx_workspace_activeWorkspace', $activeWorkspace); } @@ -85,6 +86,7 @@ $this->view->assign('showAllWorkspaceTab', $GLOBALS['BE_USER']->isAdmin()); $this->view->assign('workspaceList', $wsService->getAvailableWorkspaces()); $this->view->assign('activeWorkspaceUid', tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES); + $this->view->assign('showPreviewLink', FALSE); $GLOBALS['BE_USER']->setAndSaveSessionData('tx_workspace_activeWorkspace', tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES); // set flag for javascript $this->pageRenderer->addInlineSetting('Workspaces', 'allView', '1'); Index: Classes/Service/Workspaces.php =================================================================== --- Classes/Service/Workspaces.php (revision 4104) +++ Classes/Service/Workspaces.php (working copy) @@ -503,6 +503,27 @@ } return $viewUrl; } + + /** + * Determine whether this page for the current + * + * @param $pageUid + * @param $workspaceUid + * @return void + */ + public function canCreatePreviewLink($pageUid, $workspaceUid) { + $result = TRUE; + if ($pageUid > 0 && $workspaceUid > 0) { + $pageRecord = t3lib_BEfunc::getRecord('pages', $pageUid); + t3lib_BEfunc::workspaceOL('pages', $pageRecord, $workspaceUid); + if (!t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['FE']['content_doktypes'], $pageRecord['doktype'])) { + $result = FALSE; + } + } else { + $result = FALSE; + } + return $result; + } } Index: Resources/Private/Layouts/module.html =================================================================== --- Resources/Private/Layouts/module.html (revision 4104) +++ Resources/Private/Layouts/module.html (working copy) @@ -4,7 +4,7 @@