Re: Remove Error “There are no files to list.”

Home \ forums/reply \ Re: Remove Error “There are no files to list.”

Support Home Page Forums Joomla Software Easy Folder Listing Pro Plugin Remove Error "There are no files to list." Re: Remove Error “There are no files to list.”

#1196
Reid
Participant

I agree it is not an error but I also like the looks of it better without the “There are no files uploaded to this directory.” message when your root directory has no files in it. I think this is what DaveOzric is referring to.

@DaveOzric, if you’re feeling somewhat brave and want to tinker with the code, you can go into the easyfolderlisting.php file on make the following change:

Around line 650…

FROM:

//get the files in the root folder and display them

$filelist = $this->sortedFileList($this->_params_array);

$html.= $this->formatTableFileRows($filelist, $this->_params_array, 0);

TO:

//get the files in the root folder and display them

$filelist = $this->sortedFileList($this->_params_array);

//check if root folder is empty, otherwise fill filerows

if (!empty($filelist))

{

$html.= $this->formatTableFileRows($filelist, $this->_params_array, 0);

}

I too wish to be able to delete the files through this plug-in as I have some advanced users and files are duplicates. I’ll be exploring how to do that next… 🙂