rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: tomaspitea on April 20, 2006, 08:31:51 PM

Title: I want a message only on the first page
Post by: tomaspitea on April 20, 2006, 08:31:51 PM
Im trying to get a personal "hello message" on top of the first page when someone connect to my server. The problem is that this message is still visible when the user goes to a subfolder in my file system.
How can I change my template so my "hello" is ONLY shown when the user is in the root-folder?
Title: I want a message only on the first page
Post by: Mara on April 20, 2006, 11:22:04 PM
Make page and save it someware. Open hfs and plase the page in "/" directori. Right click on "/" and "Default file mask". Type xxx.html.
    "xxx" - the name of the page file.
Title: I want a message only on the first page
Post by: rejetto on April 21, 2006, 02:59:12 AM
maybe commenting the root?  /
Title: I want a message only on the first page
Post by: tomaspitea on April 21, 2006, 01:10:26 PM
Quote from: "Mara"
Make page and save it someware. Open hfs and plase the page in "/" directori. Right click on "/" and "Default file mask". Type xxx.html.
    "xxx" - the name of the page file.

The "default file mask" works fine now my own html-page is shown first.
Thanks for that. :D


But now I have problem to make the link to the filesystem.

My html-file is located in the root-folder

What should I write inbetween the "" to get this link to work
<a href="">Click here to view my filesystem</a>
Title: I want a message only on the first page
Post by: rejetto on April 21, 2006, 01:12:16 PM
if you have your files in the "files" folder, then put /files as link
Title: I want a message only on the first page
Post by: tomaspitea on April 21, 2006, 01:28:14 PM
Quote from: "rejetto"
if you have your files in the "files" folder, then put /files as link

no, that not the problem

I have a html file called start.html in the root folder.
I have made this file as "default file mask" for the root, so when someone goes to my server the get this html-file in there browser.

now I want to create i link to my filesystem in this start.html-file, but since it´s already in the root i don´t know how to make the link so it points to the filesystem-template
Title: I want a message only on the first page
Post by: rejetto on April 21, 2006, 01:35:18 PM
just put your "file system" in a folder
in my example the folde is called files
since this folder contains not a default file, it will show the template
Title: I want a message only on the first page
Post by: Martok on April 21, 2006, 01:47:15 PM
I already thought about it: What about a symbol like ~files.lst, for example ~files.dir which would override the default file and always serve the listing?
Title: I want a message only on the first page
Post by: tomaspitea on April 21, 2006, 02:03:06 PM
Now it works just fine! thanks!
Title: I want a message only on the first page
Post by: rejetto on April 21, 2006, 02:29:31 PM
Quote from: "Martok"
I already thought about it: What about a symbol like ~files.lst, for example ~files.dir which would override the default file and always serve the listing?
seems a good idea
Title: I want a message only on the first page
Post by: Martok on April 21, 2006, 02:43:23 PM
Quote from: "rejetto"
Quote from: "Martok"
I already thought about it: What about a symbol like ~files.lst, for example ~files.dir which would override the default file and always serve the listing?
seems a good idea

Good, maybe you can implement it.
Title: I want a message only on the first page
Post by: rejetto on April 28, 2006, 06:04:13 AM
implemented in 2.1 as ~nodefault symbol
Title: I want a message only on the first page
Post by: Martok on April 28, 2006, 02:23:04 PM
Quote from: "rejetto"
implemented in 2.1 as ~nodefault symbol
very nice, thank you!
btw: are you already having plans about 2.1 release (end of year, before, after...)?
EDIT: just seen the sticky topic, it was hidden between all the other sticky ones...
Title: I want a message only on the first page
Post by: rejetto on April 28, 2006, 04:15:14 PM
i guess it will take less than a month
it depends on my spare time
the point in 2.0 been so late was the processQ bug ;)