Commit ce2843b3 authored by speedprogs_de's avatar speedprogs_de
Browse files

added option to TypoScript settings to configure chart point count

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@52297 735d13b6-9817-0410-8766-e36946ffe9aa
parent a3b66ec2
......@@ -27,9 +27,12 @@ plugin.tx_terfe2 {
# cat=TER Frontend/settings/150; type=string; label=Media root path: Media root path for zip files and images
mediaRootPath = fileadmin/extensionFiles/
# cat=TER Frontend/settings/155; type=string; label=Count downloads: Count extension downloads via download action
# cat=TER Frontend/settings/155; type=bool; label=Count downloads: Count extension downloads via download action
countDownloads = 0
# cat=TER Frontend/settings/155; type=int+; label=Default point count: Count fo points to show in chart
defaultPointCount = 5
terConnection {
# cat=TER Frontend/settings/160; type=string; label=TER WSDL URI: WSDL URI to connect TER server
wsdl = http://typo3.org/wsdl/tx_ter_wsdl.php
......
......@@ -13,6 +13,7 @@ plugin.tx_terfe2 {
dateFormat = {$plugin.tx_terfe2.settings.dateFormat}
mediaRootPath = {$plugin.tx_terfe2.settings.mediaRootPath}
countDownloads = {$plugin.tx_terfe2.settings.countDownloads}
defaultPointCount = {$plugin.tx_terfe2.settings.defaultPointCount}
terConnection {
wsdl = {$plugin.tx_terfe2.settings.terConnection.wsdl}
......
......@@ -72,7 +72,7 @@
</tr> -->
<tr class="ter-toggle-show">
<th><f:translate key="downloads_by_version"/></th>
<td><terfe2:chart object="{extension}" method="downloadsByVersion" height="100" width="170" pointCount="10" renderOnLoad="0" /></td>
<td><terfe2:chart object="{extension}" method="downloadsByVersion" height="100" width="170" pointCount="{settings.defaultPointCount}" renderOnLoad="0" /></td>
</tr>
</table>
</div>
......
......@@ -59,7 +59,7 @@
</tr>
<tr>
<th><f:translate key="downloads_by_version"/></th>
<td><terfe2:chart object="{extension}" method="downloadsByVersion" height="120" width="170" renderOnLoad="1"/></td>
<td><terfe2:chart object="{extension}" method="downloadsByVersion" height="120" width="170" pointCount="{settings.defaultPointCount}" renderOnLoad="1"/></td>
</tr>
</table>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment