Upload Count
2 posts by 2 authors in: Forums > CMS Builder
Last Post: September 6, 2018 (RSS)
By KennyH - September 5, 2018
Is there a simple way to display the number of uploads for an individual record?
Something along the lines of other options
[invalidPageNum]
[noRecordsFound]
[page]
[perPage]
[totalPages]
[totalRecords]
[pageResultsStart]
[pageResultsEnd]
[prevPage]
[nextPage]
[prevPageLink]
[nextPageLink]
[firstPageLink]
[lastPageLink]
[_detailPage]
[_listPage]
Thanks -
Kenny
By daniel - September 6, 2018
Hi Kenny,
The number of uploads can be found by using the count() function on the array of uploads for that record. For example, if the upload field for that record is simply called "uploads" you could do something like this:
<?php echo count($exampleRecord['uploads']); ?>
Let me know if that helps!
Thanks,
Technical Lead
interactivetools.com