• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: File count in directory

File count in directory 2 years 1 week ago #40423

  • rsfiles7
  • rsfiles7's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
It would be useful to have an indication of the number of files in a directory - I have several directories under the Home folder, and want to let users see how many files are in each.

Anyone added this functionality?
The administrator has disabled public write access.

File count in directory 2 years 1 week ago #40425

  • dragos
  • dragos's Avatar
  • NOW ONLINE
  • Platinum Boarder
  • Posts: 411
  • Thank you received: 79
Hello,

This could be achieved by performing a template override for the list files template as explained here. For example, you can use a syntax as the following in order to display the number of files in a folder:
if ($item->type == 'folder') { echo $item->filesnumber; }
The administrator has disabled public write access.
The following user(s) said Thank You: rsfiles7
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!