Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
6817e63c
Commit
6817e63c
authored
Jul 07, 2017
by
Carsten Rose
Browse files
Add new STORE_TYPO3 vars: pageAlias, pageTitle
parent
9efb1d6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/Manual.rst
View file @
6817e63c
...
...
@@ -1122,6 +1122,10 @@ Store: *TYPO3* (Bodytext) - T
+-------------------------+-------------------------------------------------------------------+----------+
| pageId | Record id of current Typo3 page | see note |
+-------------------------+-------------------------------------------------------------------+----------+
| pageAlias | Alias of current Typo3 page | see note |
+-------------------------+-------------------------------------------------------------------+----------+
| pageTitle | Title of current Typo3 page | see note |
+-------------------------+-------------------------------------------------------------------+----------+
| pageType | Current selected page type (typically URL parameter 'type') | see note |
+-------------------------+-------------------------------------------------------------------+----------+
| pageLanguage | Current selected page language (typically URL parameter 'L') | see note |
...
...
extension/qfq/qfq/Constants.php
View file @
6817e63c
...
...
@@ -319,6 +319,8 @@ const TYPO3_FE_USER_UID = 'feUserUid';
const
TYPO3_FE_USER_GROUP
=
'feUserGroup'
;
const
TYPO3_TT_CONTENT_UID
=
'ttcontentUid'
;
const
TYPO3_PAGE_ID
=
'pageId'
;
const
TYPO3_PAGE_ALIAS
=
'pageAlias'
;
const
TYPO3_PAGE_TITLE
=
'pageTitle'
;
const
TYPO3_PAGE_TYPE
=
'pageType'
;
const
TYPO3_PAGE_LANGUAGE
=
'pageLanguage'
;
...
...
extension/qfq/qfq/store/T3Info.php
View file @
6817e63c
...
...
@@ -29,6 +29,10 @@ class T3Info {
$t3vars
[
TYPO3_PAGE_ID
]
=
isset
(
$GLOBALS
[
"TSFE"
]
->
id
)
?
$GLOBALS
[
"TSFE"
]
->
id
:
''
;
$t3vars
[
TYPO3_PAGE_ALIAS
]
=
isset
(
$GLOBALS
[
"TSFE"
]
->
page
[
"alias"
])
?
$GLOBALS
[
"TSFE"
]
->
page
[
"alias"
]
:
''
;
$t3vars
[
TYPO3_PAGE_TITLE
]
=
isset
(
$GLOBALS
[
"TSFE"
]
->
page
[
"title"
])
?
$GLOBALS
[
"TSFE"
]
->
page
[
"title"
]
:
''
;
$t3vars
[
TYPO3_PAGE_TYPE
]
=
isset
(
$GLOBALS
[
"TSFE"
]
->
type
)
?
$GLOBALS
[
"TSFE"
]
->
type
:
''
;
$t3vars
[
TYPO3_PAGE_LANGUAGE
]
=
isset
(
$GLOBALS
[
"TSFE"
]
->
sys_language_uid
)
?
$GLOBALS
[
"TSFE"
]
->
sys_language_uid
:
''
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment