GetConfig(); $localprefix=$config["uploads_path"]."/".$params['dir']."/"; // server sided root directory of the files you are linking $webprefix=$config["uploads_url"]."/".$params['dir']."/"; // the same directory but where your webserver will find it $folderImg=$config["uploads_path"] . '/images/Folder.gif'; $folderWebImg=$config["uploads_url"] . '/images/Folder.gif'; if ($params['showtitle'] == "true") echo "

".$params['dir']."

"; echo ""; } function smarty_cms_help_function_dirlinks() { ?>

What does this do?

Display links to all sub-folders in a uploads sub folder.... simple as that.

How do I use it?

Just insert the tag into your template/page like: {dirlinks dir="mylinks" showdate="true"} or {dirlinks dir="mylinks"}

What parameters does it take?

Author: Jean-Marie Renouard <jmrenouard@123solution.fr>

Version: 1.2

Change History:
showtitle params added

Version: 1.1

Change History:
showdate params added

Version: 1.0

Change History:
Initial revision