setup.txt 6.25 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
27
        terConnection {
            wsdl = {$plugin.tx_terfe2.settings.terConnection.wsdl}
            username = {$plugin.tx_terfe2.settings.terConnection.username}
            password = {$plugin.tx_terfe2.settings.terConnection.password}
        }
28

29
30
31
32
33
34
        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}
        }
35

36
37
38
39
40
41
        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}
        }
42

43
44
45
46
47
48
49
50
51
52
        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)
        }
53

54
55
56
57
58
59
        pages {
            extensionDetailPID = {$plugin.tx_terfe2.settings.pages.extensionDetailPID}
            manageKeysPID = {$plugin.tx_terfe2.settings.pages.manageKeysPID}
            uploadVersionPID = {$plugin.tx_terfe2.settings.pages.uploadVersionPID}
        }
    }
60

61
62
63
    ## Storage settings
    persistence {
        storagePid = {$plugin.tx_terfe2.persistence.storagePid}
64

65
66
67
68
69
70
71
72
73
74
75
        classes {
            ## Add model for extension manager cache entries (cache_extensions)
            Tx_TerFe2_Domain_Model_ExtensionManagerCacheEntry {
                mapping {
                    tableName = cache_extensions
                    recordType = Tx_TerFe2_Domain_Model_ExtensionManagerCacheEntry
                    columns {
                        crdate.mapOnProperty = creationDate
                    }
                }
            }
76
77
78
79
80
            \TYPO3\CMS\Extbase\Domain\Model\FrontendUser {
                mapping {
                    tableName = fe_users
                }
            }
81
82
        }
    }
83

84
85
86
87
88
89
    ## View specific settings
    view {
        templateRootPath = {$plugin.tx_terfe2.view.templateRootPath}
        partialRootPath = {$plugin.tx_terfe2.view.partialRootPath}
        layoutRootPath = {$plugin.tx_terfe2.view.layoutRootPath}
    }
90
91
}

92
config.tx_extbase.persistence.classes {
93
94
95
96
97
98
99
    Tx_TerFe2_Domain_Model_Version {
        mapping {
            columns {
                crdate.mapOnProperty = creationDate
            }
        }
    }
100
}
101

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

104
105
106
# ======================================================================
# Page object configuration of the extension "ter_fe2"
# ======================================================================
speedprogs_de's avatar
speedprogs_de committed
107
108
## jQuery
[globalVar = LIT:1 = {$plugin.tx_terfe2.libraries.jquery.load}]
109
    page.includeJSFooterlibs.jquery = EXT:ter_fe2/Resources/Public/Javascript/jquery-1.6.2.min.js
speedprogs_de's avatar
speedprogs_de committed
110
111
112
[global]

## jqPlot
czenker's avatar
czenker committed
113
#[globalVar = LIT:1 = {$plugin.tx_terfe2.libraries.jqplot.load}]
114
115
116
117
118
page.includeCSS.jqplot = EXT:ter_fe2/Resources/Public/Javascript/jqPlot/jquery.jqplot.min.css
page.includeJSFooterlibs.jqplot1 = EXT:ter_fe2/Resources/Public/Javascript/jqPlot/jquery.jqplot.js
page.includeJSFooterlibs.jqplot2 = EXT:ter_fe2/Resources/Public/Javascript/jqPlot/plugins/jqplot.highlighter.min.js
page.includeJSFooterlibs.jqplot3 = EXT:ter_fe2/Resources/Public/Javascript/jqPlot/plugins/jqplot.cursor.min.js
page.includeJSFooterlibs.jqplot4 = EXT:ter_fe2/Resources/Public/Javascript/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js
czenker's avatar
czenker committed
119
#[global]
120
121

## Default files
122
123
124
125
126
127
page.includeJSFooterlibs.tx_terfe2 = EXT:ter_fe2/Resources/Public/Javascript/Default.js

# ======================================================================
# Show review form only for allowed usergroup
# ======================================================================
[usergroup = {$plugin.tx_ter_pi1.reviewersFrontendUsergroupUid}] || [globalVar = LIT:1 = {$plugin.tx_terfe2.settings.show.reviewForm}]
128
    plugin.tx_terfe2.settings.show.reviewForm = 1
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[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]