Function:
· Browse a directory to list all files and subdirectories under the directory
Usage:
<file Act=dir [id=bagname] [type=file|dir]> Directory of relative paths </file>
· ID: The name of the schoolbag returned
· Type default: Lists all files and subdirectories in the directory
· Type=file: List all files in the directory
· Type=dir: List all subdirectories in the directory
Example 1:
<chtml> <file id=file act=dir>base</file> <for [email protected]{file:getwidth}> <span>@{file:[email Protected]{for:getsuffix}} </span> </for></chtml>
Browse the base directory and return a schoolbag named file , from 0 loops to the width of the schoolbag, according to the keyword file@{for:getsuffix}(FILE0, File1, file2 ...) Remove all file and directory names
Original directory
Effect
(example file: _samples/file_dir.html)
Try it yourself.
Download and description of light-open platform resources
platform free Download:http://download.csdn.net/detail/tx18/8381859
Latest Development Manual Download: http://download.csdn.net/detail/tx18/8411089
Development example: Light Open e-commerce website , free download: http://download.csdn.net/detail/tx18/8318585
The light-open platform will be upgraded to provide you with more powerful and easy features, please note the latest development manuals
Easy-to-navigate directory of File tags