Hi,
I successfully configured the site name as a multilingual domain variable, I've tested it, it works great.
Now I am trying to assign a different default home page for my second domain but it won't work.
The default home page variable does appear as a domain variable though on the site information page at Config > System > Information.
I created a new page and assigned it to the second domain. It's url is node/40085. But when I try to save this url as the new default home page for the second domain it does not save. The value stays the one of my primary domain. When I try to access the second domain, I still lend on my primary domain home page. Weird thing though, when I go to Structure > my second domain > settings, I see the domain variables for this domain and the default home page actually is node/40085 this time! Really looks like a bug to me...
Nick
Comments
Comment #1
nicolas bouteille commentedat Config > System > Information
Comment #2
nicolas bouteille commentedSwitching priority to major since Home page is very important and such a bug would prevent anyone from being able to use this module.
Comment #3
nicolas bouteille commentedOk some precision. The problem definitely comes from the Domain+I18n Variables Integration submodule. What happens is the Default homepage field cannot be edited at all. I mean even if the field is not declared as a domain variable or multilingual variable. The default value always stays on node/1 even if I try to change it to node/2 or node/40085. When I disable the module Domain+I18n Variables Integration and I refresh the site information page, I instantly get my correct homepage node/2 or node/40085. As soon as I re-enable the module, I switches back to node/1, impossible to edit.
Comment #4
nicolas bouteille commentedthe problem goes away when I comment line 35 of domain_variable_i18n.module :
but then multilingual domain variables like my site name don't work anymore.
what is this line used for?
anybody sees how to solve this?
Comment #5
nicolas bouteille commentedHere is a supposition. I think I remember trying to set the default homepage field as a multilingual x domain variable just to see if it was working. But then I removed the multilingual part and wanted it to only be a domain variable. I never set it back to multilingual x domain variable again. And now it is neither multilingual nor domain variable. However, in my database, in the variable_store table, I see 4 rows (2 languages x 2 domains) for the variable site_frontpage with the realm domain_language assigned and the value node/1 everytime... Looks like these rows should have been deleted. I am gonna try to do it manually.
Comment #6
nicolas bouteille commentedSolved! Deleting the rows did the trick! There definitely is something missing in the module that should delete domain_language rows when they should not be there anymore. Until then if you configure a field to be multilingual x domain and you then change your mind, looks like you need to update the variable_store table manually
Comment #7
nicolas bouteille commented