Hi
I am doing upgrade from d6 to d7.

Is it possible to share user pictures in multi-site installation of d7? As I see in 'user' table 'picture' field is keeping `Foreign key: file_managed.fid of user’s picture`.

But in my multi-siting, table 'file_managed' can not be shared.

So if I have in 'user' table (which is shared in my multi-site) 'picture' = 100, in different sites it will lead to different files.

Comments

BTMash’s picture

You would also have to share the file_managed table in this case. Unless someone else is able to chime in with ideas, I can't think of any other way around this aside from writing your own code which stores its own picture. You could then share the table you create.

Oleksa-1’s picture

I am not sure is ts a bug or not, but at least it is a regression from d6.

Oleksa-1’s picture

Issue summary: View changes

corr

anjjriit’s picture

Issue summary: View changes

It is possible.

You can use by setup field in settings.php

// Multisite with different database
'prefix' => array(
	'default'   => 'site1_',
	//file
	'file_managed' => 'main.',
	'file_usage' => 'main.',

	// image
	'field_data_field_image' => 'main.',
	'field_revision_field_image' => 'main.',

// Multisite with single database and prefix
'prefix' => array(
	'default'   => 'site1_',
	//file
	'file_managed' => 'main_',
	'file_usage' => 'main_',

	// image
	'field_data_field_image' => 'main_',
	'field_revision_field_image' => 'main_',

CMIIW

Version: 7.14 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.