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.
generation of html file for selected folder
-
Stefan
- Posts: 1360
- Joined: 18 Nov 2008 21:47
- Location: Europe
Re: generation of html file for selected folder
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
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
-
kotlmg
- Posts: 321
- Joined: 30 Jun 2010 17:14
Re: generation of html file for selected folder
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.
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.
XYplorer Beta Club