Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item14530: Add new config "RootDir" to unify configuartions of file system paths #18

Closed
wants to merge 1 commit into from

Conversation

bixycler
Copy link
Contributor

I propose a new config parameter "RootDir" to have all other dirs set relative
to this RootDir. Their relativity is only set up at bootstrap config, and the
admin can later freely change them to whatever he/she wants.

So the default settings should be: XxxDir = $Foswiki::cfg{RootDir}/xxx, and
RootDir is auto-detected (at bootstrap) to be the root dir of the website.

Known issue:

  • On page configure > General settings > File system paths, the subdirs are sill shown in absolute path with a button "Reset to default value $Foswiki::cfg{RootDir}/xxx", but the actually values to be saved are in form "$Foswiki::cfg{RootDir}/xxx". To show the correct form on config page, the Query.pm/getspec() should be modified a little bit.

…ystem paths

I propose a new config parameter "RootDir" to have all other dirs set relative
to this RootDir. Their relativity is only set up at bootstrap config, and the
admin can later freely change them to whatever he/she wants.

So the default settings should be: XxxDir = $Foswiki::cfg{RootDir}/xxx, and
RootDir is auto-detected (at bootstrap) to be the root dir of the website.
@gac410
Copy link
Member

gac410 commented Nov 21, 2017

I've merged this into a new Item branch off of our master branch. Item14530. We can test it from there and review the changes.

@gac410 gac410 closed this Nov 21, 2017
@bixycler
Copy link
Contributor Author

@gac410, thank you for creating branch Item14530 and merging my request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants