rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Foggy on January 08, 2008, 08:34:27 AM

Title: User Created Section's eg "/~example"
Post by: Foggy on January 08, 2008, 08:34:27 AM
Now that we have macro's and can include server side scripting would it be possible to be able to access user created section's from any folder instead of just the server root, much like how you can call ~upload from any folder.
Title: Re: User Created Section's eg "/~example"
Post by: rejetto on January 08, 2008, 09:37:37 AM
moving the mains section to [main]
since you have macros, you can do
{{if|{{?my}}|{{\{{$my}}/}} |{{\{{$main}}/}}
and use ? instead of ~
or maybe
{{dequote|{{or|{{${{?s}}}}|{{\{{$main}}/}}/or}}/dequote}}
with ?s=nameOfSection

anyhow, i'm considering other ways
Title: Re: User Created Section's eg "/~example"
Post by: Mars on January 08, 2008, 10:02:09 AM
foggy to help you,

at this time
 you can use a virtual folder named '~user' and use to it a special diff template

you put your url follow by /f1/f2/~user


rejetto why not give possibility to access all section anywhere in the url by using ~section as works ~login?

Title: Re: User Created Section's eg "/~example"
Post by: rejetto on January 08, 2008, 10:09:43 AM
because ~section is a valid filename, and thus may collide with files.
it's better to find other solutions.
Title: Re: User Created Section's eg "/~example"
Post by: Foggy on January 08, 2008, 01:24:22 PM
since you have macros,

That was what I was thinking of doing if it wasn't possible because I think I may have brought this suggestion up once before(but couldnt find it) and it wasn't possible. I see why it isnt possible now because of the filenames, so I'll just use urlvar's instead.