|
Alons0
|
 |
« on: January 08, 2007, 02:18:48 PM » |
|
rejetto when i paste %folder-name% in title, it displays the folder(ex. Music). But when I open root directory it displays "/". Rejetto please remove "/' from the root. I wanna %folder-name% to work only in folder(without "/" in root directory)
|
|
|
|
« Last Edit: January 08, 2007, 03:00:08 PM by Alons0 »
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #1 on: January 08, 2007, 06:56:50 PM » |
|
rejetto when i paste %folder-name% in title, it displays the folder(ex. Music). But when I open root directory it displays "/". Rejetto please remove "/' from the root. I wanna %folder-name% to work only in folder(without "/" in root directory)
unsure this would be a valid behaviour... what if would resolve to (root) ?
|
|
|
|
|
Logged
|
|
|
|
|
Flynsarmy
|
 |
« Reply #2 on: January 08, 2007, 07:20:44 PM » |
|
Having (root) written there would probably be pretty ugly. Maybe Home instead?
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #3 on: January 09, 2007, 05:41:12 AM » |
|
yes, (home), sorry, i was actually thinking that as you can see in the to-do-list 
|
|
|
|
|
Logged
|
|
|
|
|
Alons0
|
 |
« Reply #4 on: January 13, 2007, 05:57:21 AM » |
|
yes, (home), sorry, i was actually thinking that as you can see in the to-do-list  Not to be (Home), and Home! Please tell me when it will works 
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #5 on: January 13, 2007, 06:12:44 AM » |
|
yes, (home), sorry, i was actually thinking that as you can see in the to-do-list  Not to be (Home), and Home! i don't understand your last reply 
|
|
|
|
|
Logged
|
|
|
|
|
rejetto forum
|
 |
« Reply #5 on: January 13, 2007, 06:12:44 AM » |
|
Do you like this software?
Consider even $2
|
|
|
|
|
Logged
|
|
|
|
|
Alons0
|
 |
« Reply #6 on: January 13, 2007, 11:01:22 AM » |
|
I mean not to be in brackets 
|
|
|
|
|
Logged
|
|
|
|
|
Giant Eagle
|
 |
« Reply #7 on: January 13, 2007, 11:03:17 AM » |
|
You can do this with javascript  <script language="javascript"> var home='%folder%'; if (home=='/') { document.write ('<title>FileServer :: Home</title>') } else { document.write ('<title>FileServer :: %folder%</title>') } </script>
Just replace this with the current <title> - </title> tags inside the <head> section
|
|
|
|
|
Logged
|
Rest in peace 500mhz server, you served me well... New 1500mhz server DOA'ed on me >_> New 2400mhz server up and running again  
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #8 on: January 13, 2007, 11:13:09 AM » |
|
There must be a way to understand this "home" thing is a special place, and not the name of the folder. That's why the brackets. With no brackets, i think it is better to be an empty string.
|
|
|
|
|
Logged
|
|
|
|
rejetto
Administrator
Insane programmer
Offline
 Italy
Posts: 11829
|
 |
« Reply #9 on: January 13, 2007, 11:16:11 AM » |
|
<script language="javascript"> var home='%folder%'; if (home=='/') { document.write ('<title>FileServer :: Home</title>') } else { document.write ('<title>FileServer :: %folder%</title>') } </script>
or simpler document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
|
|
|
|
|
Logged
|
|
|
|
|
Giant Eagle
|
 |
« Reply #10 on: January 13, 2007, 11:19:42 AM » |
|
or simpler document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
riiiight... From now on  , just listen to Rejetto
|
|
|
|
|
Logged
|
Rest in peace 500mhz server, you served me well... New 1500mhz server DOA'ed on me >_> New 2400mhz server up and running again  
|
|
|
|
Alons0
|
 |
« Reply #11 on: January 13, 2007, 11:20:46 AM » |
|
There must be a way to understand this "home" thing is a special place, and not the name of the folder. That's why the brackets. With no brackets, i think it is better to be an empty string.
..::%folder-name%::.. , in title section, will display ..::Home::.. in root and i dont't want to be in brackets 
|
|
|
|
|
Logged
|
|
|
|
|
Alons0
|
 |
« Reply #12 on: January 13, 2007, 11:32:04 AM » |
|
or simpler document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
where to paste it?
|
|
|
|
|
Logged
|
|
|
|
|
Giant Eagle
|
 |
« Reply #13 on: January 13, 2007, 11:33:24 AM » |
|
<script language="javascript"> document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>'); </script> replace the current <title> code inside your template with the code shown above. 
|
|
|
|
« Last Edit: January 13, 2007, 11:35:50 AM by Giant Eagle »
|
Logged
|
Rest in peace 500mhz server, you served me well... New 1500mhz server DOA'ed on me >_> New 2400mhz server up and running again  
|
|
|
|
Alons0
|
 |
« Reply #14 on: January 23, 2007, 03:24:29 AM » |
|
Rejetto please do this: %folder-name% in title in root directory to display Home without brackets. Pleaseeeeeeeeeee P.S. I don't want to use java script for title
|
|
|
|
|
Logged
|
|
|
|
|