Hello,
this code gives the attachments to an item:
How can I revers the list so the last update is at the top of the list?
Tnx,
S@
this code gives the attachments to an item:
<?php foreach ($this->item->attachments as $attachment): ?>
<li>
<a title="<?php echo K2HelperUtilities::cleanHtml($attachment->titleAttribute); ?>" href="<?php echo $attachment->link; ?>"><?php echo preg_replace('/__(.*?)__/i', '<dataAttachment>${1}</dataAttachment> <i class="fa fa-file-pdf-o"></i>', $attachment->title) ?></a>
</li>
<?php endforeach; ?>How can I revers the list so the last update is at the top of the list?
Tnx,
S@
Edited 6 years 1 month ago by Gorast