Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The pages which show all variables for a specific realm (e.g. admin/config/system/variable/realm/language/edit
) currently do not take into account multiple realms.
- Setup site-slogan as multilingual domain variable
- Navigate to
admin/config/system/site-information
and set a site slogan for different language/domain combinations - Navigate to
admin/config/system/variable/realm/language/edit
: site-slogan is still original value, i.e. values set in previous steps do not show up. - Similarly, saving values on that page seems to only save for the language realm (ignoring the domain realm).
Comments
Comment #1
Jose Reyero CreditAttribution: Jose Reyero commentedThese pages are intended for editing variables for a single realm, so I don't think we should mix multiple realms there.
Fixed related issues #1605670: Realm switcher broken on variable edit pages. Now I think variable/realm/edit pages are working properly.
Comment #2
bforchhammer CreditAttribution: bforchhammer commentedHm okay. We should probably add respective notes then.... At the moment you can edit union-realm variables in a realm form and respective value may never actually be shown/used on the site if it's being overridden by a union-realm value. Potential source of confusion for the end user.
Or maybe just exclude union realm variables from the "edit realm variables" form, and enable the "edit" page for union realms as well. At the moment it's not possible to edit union values if variabels do not have a respective system settings form somewhere... (I have a few custom variables which fall into that category).
I'm actually not sure how much sense it makes a lot of different pages and forms for the editing very similar sets of variables... Maybe it would be better to have only one page, and add an option to the realm selector which allows to edit "global" values. E.g. add "All languages" to the language realm selector. If a user selects "All languages" and "All domains" this would allow editinig the global default values.
Comment #3
Jose Reyero CreditAttribution: Jose Reyero commentedThis is not a module for the end user, variables are meant to be edited in settings forms or wherever modules defining the realms want them edited. This is just an option on top of all your site settings forms for administering and hacking variables.
Now we need to make a realease of this variable 2.x to get started with mixed realms, we can think about improving it later. So let me know if there's any bug left or anything else we need for domain_variable to work.
Comment #4
bforchhammer CreditAttribution: bforchhammer commentedI can't think of anything that would block a release... :-)
I think there's two points in this issue which should be addressed eventually, but which I would not consider release blockers, as they both only affect site-admins and don't affect end-users:
But as I said, in terms of release-blocking I would postpone both of these issues.
Comment #5
bforchhammer CreditAttribution: bforchhammer commentedHm, and thinking about the idea of adding "all languages" and "all domains" to the realm selector a bit more... I think this could be really useful, as it would allow site admins to edit values for the following combinations all in the same (system settings) form:
This could especially make things a lot easier when a site has a lot of domains or languages and values of a variable are mostly the same across domains/languages... "a lot easier" as in "making editing for site admins more convenient", because it would eliminate the need to go to variable admin pages when settings up "default values".
Again, not a release blocker. ;-)