Commit 9fa3e1d6 authored by Stefan Busemann's avatar Stefan Busemann

[FEATURE] add sorting by crdate and add link to listview

parent 6ad26048
......@@ -23,6 +23,7 @@ use TYPO3\CMS\Extbase\Persistence\QueryInterface;
class DonationRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
{
protected $defaultOrderings = array(
'date' => QueryInterface::ORDER_DESCENDING
'crdate' => QueryInterface::ORDER_DESCENDING,
'date' => QueryInterface::ORDER_DESCENDING,
);
}
......@@ -20,7 +20,16 @@
<tbody>
<f:for each="{paginatedDonations}" as="donation">
<tr>
<td>{donation.name}</td>
<td>
<f:if condition="{donation.url}">
<f:then>
<f:link.external uri="{donation.url}">{donation.name}</f:link.external>
</f:then>
<f:else>
{donation.name}
</f:else>
</f:if>
</td>
<td>
<f:format.currency currencySign="{donation.currency}" decimalSeparator="."
thousandsSeparator="," prependCurrency="true">{donation.amount}
......@@ -34,4 +43,4 @@
</tbody>
</table>
</f:widget.paginate>
</f:section>
\ No newline at end of file
</f:section>
Markdown is supported
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