setup.txt 5.61 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 64
        }
    }
65

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

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

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

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

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

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

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

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

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