-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
reorder again #167
base: master
Are you sure you want to change the base?
reorder again #167
Conversation
some config settings where not taken over from /etc/config-site.php because the initial file overwrites again |
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.
I don't think it's a good idea to move this huge block of config above where config-site.php is read, because if PATH_PREFIX is overridden, then it won't be effective.
i have PATH_PREFIX='/' and the config-site.php is not read this way. Means the changed i applied in /etc/config-site.php do never apply because this config overrides it. I think thats not the wanted behaviour |
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.
The PATH_PREFIX is set in the 29th line. Let's say a user wants to change it, and overrides it in config-site.php. The problem is that with your change it can't be done any longer, because you move several settings before reading values from config-site.php.
okay, but how to deal with customizations in custom-settings.php for the BRANDING_* settings then? the only way i have right now is changing the settings directly in /var/piler/www/config.php that file gets overwritten by each project compilation to be updated properly by default |
Ehh, you are right, I see your point now. This is the catch 22. You need to defer all PATH_PREFIX related values until you read PATH_PREFIX from config-site.php, however after that you can't override them. I think I'll revert my original PR, and document it that if you changed PATH_PREFIX, then you need to fix BRANDING_*, etc. variables that depend on it. Give me a little time to think about it. @th-2021 what do you think? |
I think we can leave both JS_CODE and CSS_CODE as where they are now, because it's unlikely that you want to override them. We need to move up the following:
However, I'd rather leave these below after we read config-site.php, unless you want to customize them as well:
|
Would it be an option to introduce customization variables that give
combined with path_prefix the $config variable?
E.g.
config.php.in:
$cust['ICON_FILE'] = 'assets/images/fileicons/file.png'
config-site.php:
$cust['ICON_FILE'] = 'assets/images/fileicons/myfile.png
Behind inclusion of config-site.php:
$config['ICON_FILE'] = $config['PATH_PREFIX'] . $cust['ICON_FILE']
Am 22.08.2024 um 19:17 schrieb jsuto:
…
I think we can leave both JS_CODE and CSS_CODE as where they are now,
because it's unlikely that you want to override them.
We need to move up the following:
* BRANDING_FAVICON perhaps without $config['PATH_PREFIX']
* SITE_LOGO_LG
* SITE_LOGO_SM
* all the BRANDING_* variables
However, I'd rather leave these below after we read config-site.php,
unless you want to customize them as well:
* $config['ICON_DOC'] = $config['PATH_PREFIX'] .
'assets/images/fileicons/doc.png';
* $config['ICON_XLS'] = $config['PATH_PREFIX'] .
'assets/images/fileicons/xls.png';
* $config['ICON_PDF'] = $config['PATH_PREFIX'] .
'assets/images/fileicons/pdf.png';
* $config['ICON_IMAGE'] = $config['PATH_PREFIX'] .
'assets/images/fileicons/image.png';
* $config['ICON_FILE'] = $config['PATH_PREFIX'] .
'assets/images/fileicons/file.png';
—
Reply to this email directly, view it on GitHub
<#167 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVVFCF2T5WB7P53MD2OSMBLZSYMLHAVCNFSM6AAAAABM35E35WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBVGI3DINBZGA>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
E.g. something like: define('NOW', time()); +$config['SITE_LOGO_LG'] = 'assets/images/archive-logo-lg.png'; /*
'; -$config['BRANDING_FAVICON'] = '
-';
-$config['SITE_LOGO_LG'] = $config['PATH_PREFIX'] . 'assets/images/archive-logo-lg.png'; -$config['ICON_DOC'] = $config['PATH_PREFIX'] . 'assets/images/fileicons/doc.png'; foreach ($config as $k => $v) { |
No description provided.