Commit c7282438 authored by speedprogs_de's avatar speedprogs_de
Browse files

fixed missing view helper settings, added TypoScript setting for paginate template path

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@52235 735d13b6-9817-0410-8766-e36946ffe9aa
parent 99dfa55c
......@@ -9,6 +9,9 @@ plugin.tx_terfe2 {
# cat=TER Frontend/settings/100; type=int+; label=Latest count: Count of latest Extensions
latestCount = 10
# cat=TER Frontend/settings/105; type=int+; label=Latest count: Count of entries in author list
authorListCount = 10
# cat=TER Frontend/settings/110; type=int+; label=Top rated count: Count of top rated Extensions
topRatedCount = 10
......@@ -65,6 +68,11 @@ plugin.tx_terfe2 {
# cat=TER Frontend/settings/270; type=string; label=Large image format: Output format of large images
ext = jpg
}
paginate {
# cat=TER Frontend/settings/280; type=string; label=Paginate template: Template file for paginate widget
templateFile =
}
}
persistence {
......
......@@ -6,6 +6,7 @@ plugin.tx_terfe2 {
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}
......@@ -32,6 +33,10 @@ plugin.tx_terfe2 {
quality = {$plugin.tx_terfe2.settings.largeImage.quality}
ext = {$plugin.tx_terfe2.settings.largeImage.ext}
}
paginate {
templateFile = {$plugin.tx_terfe2.settings.paginate.template}
}
}
## Storage settings
......
......@@ -3,7 +3,8 @@
<f:if condition="{extensions}">
<f:then>
<p:widget.paginate templateFilePath="EXT:t3org_template/html/plugin/paginate/Templates/ViewHelpers/Widget/Paginate/Index.html" objects="{extensions}" as="paginateExtensions" configuration="{margin: 2, itemsPerPage: settings.listCount, insertAbove: 0, insertBelow: 1}">
<!-- templateFilePath="EXT:t3org_template/html/plugin/paginate/Templates/ViewHelpers/Widget/Paginate/Index.html" -->
<p:widget.paginate objects="{extensions}" as="paginateExtensions" configuration="{margin: 2, itemsPerPage: settings.listCount, insertAbove: 0, insertBelow: 1}">
<f:for each="{paginateExtensions}" as="extension">
<div class="ter-ext-list-row ter-toggle-from-here cl">
......@@ -72,7 +73,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" renderOnLoad="0" /></td>
<td><terfe2:chart object="{extension}" method="downloadsByVersion" height="100" width="170" pointCount="10" renderOnLoad="0" /></td>
</tr>
</table>
</div>
......@@ -111,9 +112,9 @@
</div>
<div class="ter-ext-list-row-buttons">
<span class="bu bu-mini"><f:link.action controller="Extension" action="download" arguments="{version : extension.lastVersion}"><f:translate key="download_t3x"/></f:link.action></span>
<span class="bu bu-mini"><f:link.action controller="Extension" action="download" arguments="{extension : extension, version : extension.lastVersion, format : 't3x'}"><f:translate key="download_t3x"/></f:link.action></span>
<f:if condition="{extension.lastVersion.mediaCreated}">
<span class="bu bu-mini"><f:link.action controller="Extension" action="download" arguments="{version : extension.lastVersion, format : 'zip'}"><f:translate key="download_zip"/></f:link.action></span>
<span class="bu bu-mini"><f:link.action controller="Extension" action="download" arguments="{extension : extension, version : extension.lastVersion, format : 'zip'}"><f:translate key="download_zip"/></f:link.action></span>
</f:if>
</div>
......
......@@ -74,14 +74,13 @@ function getDefaultChartOptions() {
return;
}
// Toggle elements
$toggleElement = $element.closest('.ter-toggle-from-here');
$toggleElement.find('.ter-toggle-hide').toggle();
$toggleElement.find('.ter-toggle-show').fadeToggle('fast');
var $chart = $toggleElement.find('.chart-container');
$toggleElement.find('.ter-toggle-show').toggle();
// Render chart
var $chart = $toggleElement.find('.chart-container');
if (typeof($chart) !== 'undefined') {
$chart.renderChart(true);
}
......
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