-
Notifications
You must be signed in to change notification settings - Fork 2.1k
make knowledge base url configurable #17961
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
Conversation
themes/example/defaults.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be in line with the other variables, shouldn’t it be $themeKnowledgeBaseUrl?
Also, might be simpler to say themeHelpUrl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure... just copy&pasted it from default.php, will update it once Jenkins finished
|
👍 |
|
@schiesbn cloud we also make it a config.php option? would make stuff easier. |
|
@karlitschek We could also implement it as a config.php option, sure. But I think this is the cleaner solution. Even if we want to get this in early, I think we should still try to have sustainable solution. I think it would be quite confusing if some stuff would be set in config.php and other (quite similar) stuff in the theme. This changes are still small and quite isolated, so I think the risk that the backport breaks something isn't really high. |
|
@schiesbn Sure. Both work for me. @MTRichards what do you think? |
|
My only concern with making this part of the theme is that it is relatively complicated (setting up a theme) if all you want to do is change the URL for the help menu. I do have this as a feature request from another customer as well, though they do use the theme approach. What else is configurable as a theme like this? |
|
@MTRichards as you can see at the following link a lot of URLs to documentation, sync clients, etc. are defined in the theme as well as ownCloud name, slogan, mail footers,... https://github.com/owncloud/core/pull/17961/files#diff-66338aea9c5877c3368c5c7b0ed484ebR36 That's why I think that this would be the logical place for the knowledge url. The customer doesn't need to create a complete new theme if he want to change the knowledge url. He just need to edit the defaults.php from the theme he already use and set the baseKnowledgeUrl like done here: https://github.com/owncloud/core/blob/make_knowledgebase_configurable/themes/example/defaults.php#L43 |
5641bca to
8fb8905
Compare
|
A new inspection was created. |
|
Sold! Thanks for explaining Bjoern. |
|
second reviewer needed... @LukasReschke @MorrisJobke @PVince81 maybe? Thanks! |
|
👍 |
make knowledge base url configurable
|
ERM, this may have just broken some apps. Because URLGenerator is instantiated in OC_Defaults, and it requires a Router, app routes are now loaded before the actual app is loaded... This caused an issue in files_external where Note that this only occurred on my WIP refactor of files_external, I'm not sure if there are any apps that will display these issues. But it's still bad that the app routes are getting loaded before the app itself. Relevant backtrace from when I noticed it (was unit testing at the time): |
|
@Xenopathic can you raise a regression ticket so this doesn't get lost ? Thanks. |

An example how #17959 could be solved.
cc @CaptionF @jancborchardt @cmonteroluque @MTRichards