rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: kaler on August 08, 2009, 03:12:11 PM

Title: question
Post 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...
Title: Re: question
Post by: SilentPliz on August 08, 2009, 03:33:33 PM
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
Title: Re: question
Post by: kaler on August 08, 2009, 05:19:32 PM
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...
Title: Re: question
Post by: Nighted on August 09, 2009, 12:42:54 AM
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?
Title: Re: question
Post by: kaler on August 09, 2009, 02:29:50 PM
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;) )
Title: Re: question
Post by: mysoogal on August 10, 2009, 09:46:06 PM
to play music check this post

http://www.rejetto.com/forum/index.php?topic=7248.0

Title: Re: question
Post by: rejetto on August 13, 2009, 02:23:39 PM
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
.}
Title: Re: question
Post by: kaler on August 15, 2009, 04:58:09 PM
ok thank you...

i will try when i am at home...

thanks...