rejetto forum

question

kaler · 8 · 4911

0 Members and 1 Guest are viewing this topic.

Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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...


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
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
« Last Edit: August 08, 2009, 06:31:55 PM by SilentPliz »


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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...


Offline Nighted

  • Occasional poster
  • *
    • Posts: 24
  • Meat Popsicle
    • View Profile
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?


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
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;) )



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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
.}


Offline kaler

  • Occasional poster
  • *
    • Posts: 94
    • View Profile
ok thank you...

i will try when i am at home...

thanks...