Support Home Page › Forums › Joomla Software › Easy Folder Listing Pro Plugin › easyfolderlistingpro – empty folder › Re: easyfolderlistingpro – empty folder

@webrockco. Thanks for posting. I think I understand what you are saying. I did change it to show a message when the folder is empty. You are saying that you want it to not display anything when the folder is empty. I will have to make that change in the next release. However, I can tell you what to change in the code to get that effect. It will be temporary, until I give an option for it in the next release.
You would have to go to plugins/content/easyfolderlistingpro/easyfolderlistingpro.php, and you need to edit line 638. You will see the following (lines 635 to 639):
1 2 3 4 5 |
//if the files is empty, get the errors and display them<br /> if (empty($files))<br /> {<br /> return $this->customError(JText::sprintf('PLG_CONTENT_EFLP_LISTING_NO_FILES', $this->normalized['folder']));<br /> } |
and change it to:
1 2 3 4 5 6 |
//if the files is empty, get the errors and display them<br /> if (empty($files))<br /> {<br /> //return $this->customError(JText::sprintf('PLG_CONTENT_EFLP_LISTING_NO_FILES', $this->normalized['folder']));<br /> return '';<br /> } |
And that should give you the result you want.