rejetto forum

User Created Section's eg "/~example"

Foggy · 5 · 1906

0 Members and 1 Guest are viewing this topic.

Offline Foggy

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


Offline rejetto

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


Offline Mars

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



Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
because ~section is a valid filename, and thus may collide with files.
it's better to find other solutions.


Offline Foggy

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