Bug #22665 » 14404-ws-view_v2.patch
typo3/alt_clickmenu.php (working copy) | ||
---|---|---|
$lCP = $BE_USER->calcPerms(t3lib_BEfunc::getRecord('pages',($table=='pages'?$this->rec['uid']:$this->rec['pid'])));
|
||
|
||
// View
|
||
if (!in_array('view',$this->disabledItems)) {
|
||
if ($table=='pages') $menuItems['view']=$this->DB_view($uid);
|
||
if ($table==$GLOBALS['TYPO3_CONF_VARS']['SYS']['contentTable']) {
|
||
if (!in_array('view', $this->disabledItems)) {
|
||
if ($table=='pages') {
|
||
$workspaceId = (isset($this->rec['_ORIG_uid'])) ? $this->rec['_ORIG_uid'] : $uid;
|
||
$menuItems['view'] = $this->DB_view($workspaceId);
|
||
}
|
||
if ($table == $GLOBALS['TYPO3_CONF_VARS']['SYS']['contentTable']) {
|
||
$ws_rec = t3lib_BEfunc::getRecordWSOL($table, $this->rec['uid']);
|
||
$menuItems['view']=$this->DB_view($ws_rec['pid']);
|
||
$menuItems['view'] = $this->DB_view($ws_rec['pid']);
|
||
}
|
||
}
|
||
|
typo3/sysext/cms/layout/db_layout.php (working copy) | ||
---|---|---|
);
|
||
|
||
// View page
|
||
$buttons['view'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($this->pageinfo['uid'], $BACK_PATH, t3lib_BEfunc::BEgetRootLine($this->pageinfo['uid']))) . '">' .
|
||
$previewId = (isset($this->pageinfo['_ORIG_uid'])) ? $this->pageinfo['_ORIG_uid'] : $this->pageinfo['uid'];
|
||
$buttons['view'] = '<a href="#" onclick="' . htmlspecialchars(t3lib_BEfunc::viewOnClick($previewId, $BACK_PATH, t3lib_BEfunc::BEgetRootLine($this->pageinfo['uid']))) . '">' .
|
||
'<img' . t3lib_iconWorks::skinImg($BACK_PATH, 'gfx/zoom.gif', 'width="12" height="12"') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.showPage', 1) . '" hspace="3" alt="" />' .
|
||
'</a>';
|
||
|
typo3/sysext/viewpage/view/index.php (working copy) | ||
---|---|---|
$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
|
||
$access = is_array($this->pageinfo) ? 1 : 0;
|
||
$addCmd='';
|
||
|
||
// Workspace overlay
|
||
$this->id = (isset($this->pageinfo['_ORIG_uid'])) ? $this->pageinfo['_ORIG_uid'] : $this->id;
|
||
|
||
if ($this->id && $access) {
|
||
$addCmd = '&ADMCMD_view=1&ADMCMD_editIcons=1'.t3lib_BEfunc::ADMCMD_previewCmds($this->pageinfo);
|
||
}
|
- « Previous
- 1
- 2
- Next »