Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_mail
Commits
9d0a6318
Commit
9d0a6318
authored
7 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Only showing root pages for all domains
parent
c520693d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Classes/Service/BackendService.php
+3
-11
3 additions, 11 deletions
Classes/Service/BackendService.php
Resources/Private/Templates/Mail/Index.html
+1
-1
1 addition, 1 deletion
Resources/Private/Templates/Mail/Index.html
with
4 additions
and
12 deletions
Classes/Service/BackendService.php
+
3
−
11
View file @
9d0a6318
...
...
@@ -47,23 +47,15 @@ class BackendService {
* @throws \InvalidArgumentException
*/
public
static
function
getPages
()
{
$out
=
[];
/** @var $databaseConnection DatabaseConnection */
$databaseConnection
=
$GLOBALS
[
'TYPO3_DB'
];
$rows
=
$databaseConnection
->
exec_SELECTgetRows
(
'
distinct pid
'
,
'
*
'
,
'pages'
,
'deleted = 0'
'deleted = 0
AND is_siteroot = 1
'
);
foreach
(
$rows
as
$row
)
{
$pageInfo
=
BackendUtility
::
readPageAccess
(
$row
[
'pid'
],
$GLOBALS
[
'BE_USER'
]
->
getPagePermsClause
(
1
));
if
(
$pageInfo
)
{
$out
[]
=
$pageInfo
;
}
}
return
$out
;
return
$rows
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Resources/Private/Templates/Mail/Index.html
+
1
−
1
View file @
9d0a6318
...
...
@@ -18,7 +18,7 @@
<td
nowrap=
"nowrap"
class=
"col-title"
>
<a
href=
"#"
onclick=
"sgMailGoToPage({page.uid}); return false;"
>
<sgm:backend.icon
table=
"pages"
row=
"{page}"
clickMenu=
"0"
/>
{page.
_thePathFull
}
{page.
title
}
</a>
</td>
</tr>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment