rejetto forum
Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: kaler on August 08, 2009, 03:12:11 PM
-
Hello @ all
i have a question: i want make a little page with my music songs.
I would like, that there is an "normal" template, but when in the folder are mp3, or wma files, then an other template should be load...
what i must do??
thanks...
-
Welcome kaler!
HFS > Expert Mode
Right click in the VFS, on the folder that contains your MP3 (and/or wma files)
Properties... > Diff Template > you paste the text of the template you want to use for this folder and its subfolders.
Then save your file system.
Alternative (equivalent):
You rename the template you want to use for your mp3 folder and its subfolders:
hfs.diff.tpl
Then you put this file in your music folder.
folder<<<hfs.diff.tpl here
subfolder
subfolder
subfolder
subfolder
subfolder
subfolder
subfolder
subfolder
-
ok thanks...
BUT I want a script (or something else) which knows, there is a music file in the folder, and then should be loaded an other template...
-
ok thanks...
BUT I want a script (or something else) which knows, there is a music file in the folder, and then should be loaded an other template...
Do you want to stream music from a browser?
-
yes and no...
i want that when there is a music file, a symbol after the file that start the stream, but thereshould be no symbol after other files...
understand??( i'm not good in english;) )
-
to play music check this post
http://www.rejetto.com/forum/index.php?topic=7248.0
-
by editing the template, you can add some code under the [file] section.
on the exact place where you want your extra things to be displayed, you should put something like
{.if|{.%item-ext% = mp3.}|
extra things
.}
-
ok thank you...
i will try when i am at home...
thanks...