Page 1 of 1
generation of html file for selected folder
Posted: 15 Nov 2011 04:17
by kotlmg
i need a small script to generate html file for the selected folder. it should be able to generate links to all files and folders, subfolders etc. i need a small icon besides the file type. the hyperlinks should be generated based on the relative path not on the actual path.
ex: if folder has test1.doc, besides test1.doc msword icon should be there. for video files video icons should be there.
Re: generation of html file for selected folder
Posted: 18 Nov 2011 08:27
by Stefan
That should be doable with report() and some HTML knowledge.
But it would take a bit of work. See the tour for an start >
http://www.xyplorer.com/tour/index.php?page=scripting
Scroll far down to the end till "Use Scripting for Reports"
* first try to get used to report() with an simple text() output.
* then generate an HTML page as you need with dummy content in notepad or an little HTML editor.
(not WordTM or big flagships which would insert too many own formating code, use e.g. Phase5 Proton or WebCraft WebWeaver)
* then try to combine both into an script
Re: generation of html file for selected folder
Posted: 18 Nov 2011 09:55
by kotlmg
i have found one portable freeware at the following site. it has solved my problems. i need not to know any html code building etc.
http://dirhtml.home.comcast.net/~dirhtml/
Dirhtml builds customizable html files from a folder branch using the gui or command line.
It runs on Windows NT/2000/XP/Vista/Win7 and via Wine on most linux distributions.