setup.txt 6.66 KB
Newer Older
1
# ======================================================================
2
# Default configuration of the extension "ter_fe2"
3
4
# ======================================================================
plugin.tx_terfe2 {
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    ## General settings
    settings {
        latestCount = {$plugin.tx_terfe2.settings.latestCount}
        listCount = {$plugin.tx_terfe2.settings.listCount}
        authorListCount = {$plugin.tx_terfe2.settings.authorListCount}
        topRatedCount = {$plugin.tx_terfe2.settings.topRatedCount}
        randomAuthorCount = {$plugin.tx_terfe2.settings.randomAuthorCount}
        descriptionLength = {$plugin.tx_terfe2.settings.descriptionLength}
        dateFormat = {$plugin.tx_terfe2.settings.dateFormat}
        mediaRootPath = {$plugin.tx_terfe2.settings.mediaRootPath}
        countDownloads = {$plugin.tx_terfe2.settings.countDownloads}
        defaultPointCount = {$plugin.tx_terfe2.settings.defaultPointCount}
        versionHistoryCount = {$plugin.tx_terfe2.settings.versionHistoryCount}
        skipLatestVersion = {$plugin.tx_terfe2.settings.skipLatestVersion}
        onlyLatestVersionZip = {$plugin.tx_terfe2.settings.onlyLatestVersionZip}
        reviewerGroupUid = {$plugin.tx_ter_pi1.reviewersFrontendUsergroupUid}
        terAdminGroupUid = {$plugin.tx_ter_pi1.adminFrontendUsergroupUid}
22

23
24
25
26
        terConnection {
            wsdl = {$plugin.tx_terfe2.settings.terConnection.wsdl}
            username = {$plugin.tx_terfe2.settings.terConnection.username}
            password = {$plugin.tx_terfe2.settings.terConnection.password}
27
28
29
30
            httpAuth {
                login = {$plugin.tx_terfe2.settings.terConnection.httpAuth.login}
                password = {$plugin.tx_terfe2.settings.terConnection.httpAuth.password}
            }
31
        }
32

33
34
35
36
37
38
        smallImage {
            maxW = {$plugin.tx_terfe2.settings.smallImage.maxW}
            maxH = {$plugin.tx_terfe2.settings.smallImage.maxH}
            quality = {$plugin.tx_terfe2.settings.smallImage.quality}
            ext = {$plugin.tx_terfe2.settings.smallImage.ext}
        }
39

40
41
42
43
44
45
        largeImage {
            maxW = {$plugin.tx_terfe2.settings.largeImage.maxW}
            maxH = {$plugin.tx_terfe2.settings.largeImage.maxH}
            quality = {$plugin.tx_terfe2.settings.largeImage.quality}
            ext = {$plugin.tx_terfe2.settings.largeImage.ext}
        }
46

47
48
49
50
51
52
53
54
55
56
        show {
            extensionSearch = {$plugin.tx_terfe2.settings.show.extensionSearch}
            authorExtensions = {$plugin.tx_terfe2.settings.show.authorExtensions}
            authorOverview = {$plugin.tx_terfe2.settings.show.authorOverview}
            categoryExtensions = {$plugin.tx_terfe2.settings.show.categoryExtensions}
            categoryOverview = {$plugin.tx_terfe2.settings.show.categoryOverview}
            tagExtensions = {$plugin.tx_terfe2.settings.show.tagExtensions}
            tagOverview = {$plugin.tx_terfe2.settings.show.tagOverview}
            # reviewForm        = (see condition at file end)
        }
57

58
59
60
61
        pages {
            extensionDetailPID = {$plugin.tx_terfe2.settings.pages.extensionDetailPID}
            manageKeysPID = {$plugin.tx_terfe2.settings.pages.manageKeysPID}
            uploadVersionPID = {$plugin.tx_terfe2.settings.pages.uploadVersionPID}
62
            searchResultsPid = {$plugin.tx_terfe2.settings.pages.searchResultsPid}
63
            abandonedExtensionFormPid = {$plugin.tx_terfe2.settings.pages.abandonedExtensionFormPid}
64
65
        }
    }
66

67
68
    ## Storage settings
    persistence {
69
        storagePid = {$plugin.tx_terfe2.persistence.storagePid},{$styles.content.loginform.pid}
70

71
72
        classes {
            ## Add model for extension manager cache entries (cache_extensions)
73
            \T3o\TerFe2\Domain\Model\ExtensionManagerCacheEntry {
74
75
                mapping {
                    tableName = cache_extensions
76
                    recordType = \T3o\TerFe2\Domain\Model\ExtensionManagerCacheEntry
77
78
                }
            }
79
80
81
82
83
            \TYPO3\CMS\Extbase\Domain\Model\FrontendUser {
                mapping {
                    tableName = fe_users
                }
            }
84
85
        }
    }
86

87
88
89
90
91
92
    ## View specific settings
    view {
        templateRootPath = {$plugin.tx_terfe2.view.templateRootPath}
        partialRootPath = {$plugin.tx_terfe2.view.partialRootPath}
        layoutRootPath = {$plugin.tx_terfe2.view.layoutRootPath}
    }
93
94
}

95
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ter_fe2/Configuration/TypoScript/Default/Plugins/Solr.ts">
96

97
98
99
# ======================================================================
# Page object configuration of the extension "ter_fe2"
# ======================================================================
speedprogs_de's avatar
speedprogs_de committed
100

101
page.includeJSFooterlibs.highcharts = EXT:ter_fe2/Resources/Public/Javascript/Highcharts.js
102

103
page.includeJSFooter.tx_terfe2 = EXT:ter_fe2/Resources/Public/Javascript/Default.js
104

105
106
107
page.jsInline.1 = TEXT
page.jsInline.1.value = var versionChartData = "";

108
109
110
111
# ======================================================================
# Show review form only for allowed usergroup
# ======================================================================
[usergroup = {$plugin.tx_ter_pi1.reviewersFrontendUsergroupUid}] || [globalVar = LIT:1 = {$plugin.tx_terfe2.settings.show.reviewForm}]
112
    plugin.tx_terfe2.settings.show.reviewForm = 1
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[global]

##### switch between EXT:solr and EXT:ter_fe2 #####

# EXT:solr
[page|uid = {$const.page.ter_fe}] && [globalVar = GP:tx_terfe2_pi1|action =]
    tt_content.list.20.terfe2_pi1 >
    tt_content.list.20.terfe2_pi1 = TEXT
    tt_content.list.20.terfe2_pi1.value =
[global]

# EXT:ter_fe2
[page|uid = {$const.page.ter_fe}] && [globalString = GP:tx_terfe2_pi1|action = ?*]
    tt_content.list.20.solr_pi_results >
    tt_content.list.20.solr_pi_results = TEXT
    tt_content.list.20.solr_pi_results.value =
[global]
Thomas Löffler's avatar
Thomas Löffler committed
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159

like = PAGE
like {
    typeNum = {$plugin.tx_terfe2.like.typeNum}
    config {
        disableAllHeaderCode = 1
        xhtml_cleaning = none
        admPanel = 0
        debug = 0
        disablePrefixComment = 1
        metaCharset = utf-8
        additionalHeaders.10.header = Content-Type:application/json
    }

    10 = USER
    10 {
        userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
        vendorName = T3o
        extensionName = TerFe2
        pluginName = Rating
        controller = Extension
        switchableControllerActions {
            Extension {
                1 = like
            }
        }
    }
}

dislike < like
Thomas Löffler's avatar
Thomas Löffler committed
160
dislike.typeNum = {$plugin.tx_terfe2.dislike.typeNum}
Thomas Löffler's avatar
Thomas Löffler committed
161
162
163
164
165
166
167
168
169
170
171
172
173
dislike.10.switchableControllerActions.Extension.1 = disLike

plugin.tx_terfe2_rating {
    features.requireCHashArgumentForActionArguments = 0
}

config.tx_extbase.persistence.classes {
	T3o\TerFe2\Domain\Model\FrontendUser {
		mapping {
			tableName = fe_users
		}
	}
}