I'm using a multi-site Drupal installation. On two sites I use a gallery (different ones) with Gallery2 and the gallery-module. For Textinput I use TinyMCE with g2image.
But g2image seems not to be compatible with multi galleries. There's only one config.php. And because of g2image is only connected to Drupal via Javascript, the config-options can not be changed in the settings.php of each multi-site.
Is there any solution to get multi-site support for g2image?
I thought of fetching the settings.php's folder's name and send this to g2image. So in config.php g2image could also read the settings.php of the current (multi-)site. So there the data could be changed.
But how can I send g2image the folder's name and how can I get the name automatically?
Comments
You could use site specific
You could use site specific modules directories both with TinyMCE and g2image. This would allow different config files.
Thanks, sure this works for
Thanks, sure this works for me.
Here's an alternate
Here's an alternate solution. Only use this if all your multisite instances will use shared settings, otherwise, use kiz's suggestion of tinymce installs for each multisite instance. Again, this is only for drupal *and* gallery2 multisite instances. This is a hack, use at your own risk.
Edit sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/g2image/config.php
http://2tbsp.com
Share g2image Plugin across Drupal Multsites
Here's another solution.
put this right below your opening php tag:
It's not super clean...it requires this code to be added to config.php each time i upgrade the plugin and it requires hard coding of the absolute path, but it sure beats duplicating modules.
Worked for me,
--
Steve Oliver
Circatree