rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Alons0 on January 08, 2007, 08:18:48 PM

Title: %folder-name%
Post by: Alons0 on January 08, 2007, 08: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)
Title: %folder-name%
Post by: rejetto on January 09, 2007, 12:56:50 AM
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) ?
Title: %folder-name%
Post by: Flynsarmy on January 09, 2007, 01:20:44 AM
Having (root) written there would probably be pretty ugly. Maybe Home instead?
Title: %folder-name%
Post by: rejetto on January 09, 2007, 11:41:12 AM
yes, (home), sorry, i was actually thinking that as you can see in the to-do-list :)
Title: %folder-name%
Post by: Alons0 on January 13, 2007, 11: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 :o
Title: Re: %folder-name%
Post by: rejetto on January 13, 2007, 12:12:44 PM
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 ???
Title: Re: %folder-name%
Post by: Alons0 on January 13, 2007, 05:01:22 PM
I mean not to be in brackets ::)
Title: Re: %folder-name%
Post by: Giant Eagle on January 13, 2007, 05:03:17 PM
You can do this with javascript :)

Code: [Select]
<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
Title: Re: %folder-name%
Post by: rejetto on January 13, 2007, 05:13:09 PM
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.
Title: Re: %folder-name%
Post by: rejetto on January 13, 2007, 05:16:11 PM
Code: [Select]
<script language="javascript">
var home='%folder%';
if (home=='/')
    {
document.write ('<title>FileServer :: Home</title>')
    }
else
    {
document.write ('<title>FileServer :: %folder%</title>')
    }
</script>

or simpler
Code: [Select]
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
Title: Re: %folder-name%
Post by: Giant Eagle on January 13, 2007, 05:19:42 PM
or simpler
Code: [Select]
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');

riiiight...

From now on  ::), just listen to Rejetto
Title: Re: %folder-name%
Post by: Alons0 on January 13, 2007, 05:20:46 PM
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 :'(
Title: Re: %folder-name%
Post by: Alons0 on January 13, 2007, 05:32:04 PM
or simpler
Code: [Select]
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
where to paste it?
Title: Re: %folder-name%
Post by: Giant Eagle on January 13, 2007, 05:33:24 PM
Code: [Select]
<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. :)
Title: Re: %folder-name%
Post by: Alons0 on January 23, 2007, 09: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
Title: Re: %folder-name%
Post by: rejetto on January 23, 2007, 06:08:50 PM
and what if someone wants to display "maison" ?
what HFS will display should not depend only on your personal needs, but should match most users.
"Home" may be the right thing, but i'm unsure because it may be confused with a folder named "Home". I would like to read some opinion, before taking a decision.
Title: Re: %folder-name%
Post by: ~GeeS~ on January 23, 2007, 07:36:31 PM
and what if someone wants to display "maison" ?
Exactly!
Leave it as it is: just / , a valid sign in any language, just my 2cents.
Title: Re: %folder-name%
Post by: maverick on January 23, 2007, 08:54:21 PM
and what if someone wants to display "maison" ?
Exactly!
Leave it as it is: just / , a valid sign in any language, just my 2cents.

I agree with ~GeeS~.  I do not understand why a change is needed.  Leave it as it is "/" which everybody understands in any language.  Just my 2 cents too.  So that's a total of 4 cents. :D
Title: Re: %folder-name%
Post by: Unknown8063 on January 24, 2007, 02:58:46 AM
I also agree that it should remain a slash "/"
Title: Re: %folder-name%
Post by: MarkV on January 24, 2007, 06:11:52 AM
Should be a '/' or 'Root folder display as...' option. I'm happy with '/'.

MarkV
Title: Re: %folder-name%
Post by: Alons0 on January 24, 2007, 08:05:39 AM
Hmm in root directory %folder-name% display nothing(without /)will be good - the symbol to work when we're in a folder.
Title: Re: %folder-name%
Post by: rejetto on January 24, 2007, 03:44:04 PM
display nothing?
i just tested and it displays /
what you mean?
Title: Re: %folder-name%
Post by: Alons0 on January 24, 2007, 06:06:25 PM
display nothing?
i just tested and it displays /
what you mean?
It will be good to display nothing. I wanna work only in folder.
Title: Re: %folder-name%
Post by: rejetto on January 24, 2007, 07:11:48 PM
let's make a poll