rejetto forum

%folder-name%

Alons0 · 24 · 12347

0 Members and 1 Guest are viewing this topic.

Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
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, 09:00:08 PM by Alons0 »


Offline rejetto

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


Offline Flynsarmy

  • Occasional poster
  • *
    • Posts: 92
  • DENIED!
    • View Profile
    • Flynsarmy
Having (root) written there would probably be pretty ugly. Maybe Home instead?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
yes, (home), sorry, i was actually thinking that as you can see in the to-do-list :)


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
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


Offline rejetto

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


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site

Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
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


Offline rejetto

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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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>');


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
or simpler
Code: [Select]
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');

riiiight...

From now on  ::), just listen to Rejetto


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
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 :'(


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
or simpler
Code: [Select]
document.write ('<title>FileServer :: '+('%folder%'=='/' ? 'Home' : '%folder%')+'</title>');
where to paste it?


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
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. :)
« Last Edit: January 13, 2007, 05:35:50 PM by Giant Eagle »


Offline Alons0

  • Tireless poster
  • ****
    • Posts: 197
    • View Profile
    • Alons0's site
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