Skip to content

Commit 316d6e7

Browse files
Merge pull request #317 from beatrycze-volk/use-proper-constants
[MAINTENANCE] Replace `config` with `plugin.tx_dfgviewer` in constants
2 parents 788488f + 5cd9491 commit 316d6e7

File tree

9 files changed

+26
-29
lines changed

9 files changed

+26
-29
lines changed

Configuration/TypoScript/Navigation/menu.typoscript

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ lib.menu {
8080
20 = HMENU
8181
20 {
8282
special = directory
83-
special.value = {$config.headNavPid}
83+
special.value = {$plugin.tx_dfgviewer.headNavPid}
8484
1 = TMENU
8585
1 {
8686
expAll = 1
@@ -99,7 +99,7 @@ lib.menu {
9999
20 = HMENU
100100
20 {
101101
special = list
102-
special.value = {$config.viewerNavPids}
102+
special.value = {$plugin.tx_dfgviewer.viewerNavPids}
103103
1 = TMENU
104104
1 {
105105
expAll = 1

Configuration/TypoScript/Page/header.typoscript

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ page {
2525
}
2626

2727

28-
[getTSFE().id == {$config.kitodoPageView}]
28+
[getTSFE().id == {$plugin.tx_dfgviewer.kitodoPageView}]
2929
page {
3030
includeCSS {
3131
style = EXT:dfgviewer/Resources/Public/Css/allStyles.css

Configuration/TypoScript/Page/page.typoscript

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ page {
2727
pageTitle.data = page:title
2828

2929
productName = TEXT
30-
productName.value = {$config.productName}
30+
productName.value = {$plugin.tx_dfgviewer.productName}
3131

3232
pageHideInMenu = TEXT
3333
pageHideInMenu.data = page:nav_hide
3434

3535
rootPageId = TEXT
36-
rootPageId.value = {$config.rootPid}
36+
rootPageId.value = {$plugin.tx_dfgviewer.rootPid}
3737

3838
kitodoPageView = TEXT
39-
kitodoPageView.value = {$config.kitodoPageView}
39+
kitodoPageView.value = {$plugin.tx_dfgviewer.kitodoPageView}
4040

4141
piwik_hostname = TEXT
42-
piwik_hostname.value = {$config.piwik_hostname}
42+
piwik_hostname.value = {$plugin.tx_dfgviewer.piwik_hostname}
4343

4444
piwik_idsite = TEXT
45-
piwik_idsite.value = {$config.piwik_idsite}
45+
piwik_idsite.value = {$plugin.tx_dfgviewer.piwik_idsite}
4646

4747
piwik_domains = TEXT
48-
piwik_domains.value = {$config.piwik_domains}
48+
piwik_domains.value = {$plugin.tx_dfgviewer.piwik_domains}
4949

5050
}
5151
}
@@ -60,11 +60,11 @@ lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.nonWrappedTag >
6060
# -------------------------------
6161
# Diverses
6262
# -------------------------------
63-
[getTSFE().id == {$config.rootPid}]
63+
[getTSFE().id == {$plugin.tx_dfgviewer.rootPid}]
6464
page.bodyTag = <body class="website home">
6565
[END]
6666

67-
[getTSFE().id == {$config.kitodoPageView}]
67+
[getTSFE().id == {$plugin.tx_dfgviewer.kitodoPageView}]
6868
page {
6969
bodyTag = <body class="dfgviewer">
7070
10 {

Configuration/TypoScript/Plugins/News/changelog.typoscript

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugin.tx_news {
99
skipDefaultArguments = 0
1010
}
1111
settings {
12-
listPid = {$config.news.listPid}
12+
listPid = {$plugin.tx_dfgviewer.news.listPid}
1313
displayDummyIfNoMedia = 0
1414
analytics {
1515
social {
@@ -18,7 +18,7 @@ plugin.tx_news {
1818
twitter = 0
1919
}
2020
}
21-
startingpoint = {$config.news.storagePid}
21+
startingpoint = {$plugin.tx_dfgviewer.news.storagePid}
2222
list {
2323
media {
2424
image {

Configuration/TypoScript/Plugins/News/faq.typoscript

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugin.tx_news {
99
skipDefaultArguments = 0
1010
}
1111
settings {
12-
listPid = {$config.news.listPid}
12+
listPid = {$plugin.tx_dfgviewer.news.listPid}
1313
displayDummyIfNoMedia = 0
1414
analytics {
1515
social {
@@ -18,7 +18,7 @@ plugin.tx_news {
1818
twitter = 0
1919
}
2020
}
21-
startingpoint = {$config.news.storagePid}
21+
startingpoint = {$plugin.tx_dfgviewer.news.storagePid}
2222
list {
2323
media {
2424
image {

Configuration/TypoScript/Plugins/dfgviewer.typoscript

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ plugin.tx_dfgviewer_newspapercalendar {
4242
}
4343
}
4444
settings {
45-
targetPid = {$config.kitodoPageView}
45+
targetPid = {$plugin.tx_dfgviewer.kitodoPageView}
4646
showEmptyMonths = 1
4747
showEmptyTertialMonths = 0
4848
}

Configuration/TypoScript/Plugins/kitodo.typoscript

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ plugin.tx_dlf_embedded3dviewer {
7979
plugin.tx_dlf_pagegrid < tt_content.list.20.dlf_pagegrid
8080
plugin.tx_dlf_pagegrid {
8181
settings {
82-
targetPid = {$config.kitodoPageView}
82+
targetPid = {$plugin.tx_dfgviewer.kitodoPageView}
8383
placeholder = EXT:dfgviewer/Resources/Public/Images/GridPlaceHolder.jpg
8484
paginate {
8585
itemsPerPage = 24
@@ -100,7 +100,7 @@ plugin.tx_dlf_pagegrid {
100100
plugin.tx_dlf_tableofcontents < tt_content.list.20.dlf_tableofcontents
101101
plugin.tx_dlf_tableofcontents {
102102
settings {
103-
targetPid = {$config.kitodoPageView}
103+
targetPid = {$plugin.tx_dfgviewer.kitodoPageView}
104104
menuConf {
105105
expAll = 1
106106
}

Configuration/TypoScript/constants.typoscript

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
config {
1+
plugin.tx_dfgviewer {
22

3-
# cat=plugin.tx_dfgviewer/links/010; type=int+; label=Storage PID
4-
storagePid =
5-
6-
# cat=plugin.tx_dfgviewer/links/020; type=int+; label=Root PID
3+
# cat=plugin.tx_dfgviewer/links/010; type=int+; label=Root PID
74
rootPid =
85

9-
# cat=plugin.tx_dfgviewer/links/030; type=int+; label= Headnavigation PID
6+
# cat=plugin.tx_dfgviewer/links/020; type=int+; label= Headnavigation PID
107
headNavPid =
118

12-
# cat=plugin.tx_dfgviewer/links/040; type=string; label= Multiple IDs for the sidebar navigation in the viewer
9+
# cat=plugin.tx_dfgviewer/links/030; type=string; label= Multiple IDs for the sidebar navigation in the viewer
1310
viewerNavPids =
1411

15-
# cat=plugin.tx_dfgviewer/links/050; type=int+; label=Kitodo Page View
12+
# cat=plugin.tx_dfgviewer/links/040; type=int+; label=Kitodo Page View
1613
kitodoPageView =
1714

1815
# cat=plugin.tx_dfgviewer/piwik/010; type=string; label=Piwik Hostname

Initialisation/data.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4194,9 +4194,9 @@
41944194
<field index="include_static_file">EXT:fluid_styled_content/Configuration/TypoScript/,EXT:dlf/Configuration/TypoScript/,EXT:dfgviewer/Configuration/TypoScript</field>
41954195
<field index="constants"># Please set at least the following constants via the TypoScript Constant Editor
41964196
plugin.tx_dlf.persistence.storagePid = 3
4197-
config.rootPid = 1
4198-
config.headNavPid = 0
4199-
config.kitodoPageView = 2</field>
4197+
plugin.tx_dfgviewer.rootPid = 1
4198+
plugin.tx_dfgviewer.headNavPid = 0
4199+
plugin.tx_dfgviewer.kitodoPageView = 2</field>
42004200
<field index="config"></field>
42014201
<field index="nextLevel"></field>
42024202
<field index="basedOn"></field>

0 commit comments

Comments
 (0)