Espace réservé aux bonne idées et suggestions pour Joomlack.

File counter on a menu button

More
1 year 2 weeks ago #75302 by AxelFlecko
Hello again, CEd!
I wonder if it is possible to have a function that can show the number of images (or files) from a folder on the menu button itself. Much like the one Piwigo has. In and of itself, I can sit and count and write the number of files there (image1.jpg, etc.). But if, for example, I add pictures regularly, I want to avoid counting. I know Joomla can show the information about articles on one page but that's not really what I want. What I would like is the number of images in a folder under /images/abcdef and have the number presented on a menu button.
Piwigo may count the number of positions (image articles with image information) in the category to be displayed. But then I don't present my old pictures. But for my older pictures, I have them in a folder and a label's text. That's why I want a calculator for them.
I have started using Fastw3b Gallery for newly added images but I can't bring myself to upload the images again in that component.
I want the person who is going to view the images to get an estimate of how long it might take before the image page loads.Thanks in advance!
Have all the best!
Bengt
Hallstavik

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #75303 by ced1870
Hi
not sure which extension you are talking about ?
by my side I don't think that you can do that simply, but you should be able to do it using a custom script

CEd

Joomlack Webmaster and Developer
The following user(s) said Thank You: AxelFlecko

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #75304 by AxelFlecko
I was thinking about Maximenu and if it was possible to have an option to enter, in the module, a folder path to the folder that would be calculated. But it turns out that if I upload a file via FTP, the files in the folder have to be recalculated. It sounds more like a new kind of component, when I think about it. I would probably need a CRON job that recalculates the files.
It was just a thought that came to mind when I saw Piwigo's menu function.
We'll close it and I'll have to think of another solution.
Have a great time!

Benke

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #75305 by ced1870
it can not be part of Maximenu
As said it would be a custom script
- php counting the files
- store the number in a JS variable
- use a JS script to show the variable value somewhere in the page

Joomlack Webmaster and Developer
The following user(s) said Thank You: AxelFlecko

Please Log in or Create an account to join the conversation.

Time to create page: 0.207 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1261 guests and no members online