At my place of work, we have a non-standard workflow for working on development sites. We developed it at the same time that Drush was being written because we didn't know about Drush at the time. Sadly, due to the high number of multi-site Drupal installations we maintain, it ended up working differently from Drush.
ASIDE: The basic idea is that all sites share the same Drupal core, but we symlink
sites/default
to a copy of the site we're working on (remember, this is our development server). We checksites/default
into our version-control. Because all sites share the other directories (including sites/all), and because sites developed at different times occasionally use different versions of the same libraries, we have to install libraries intosites/default/libraries
.
Having the Libraries API support looking for libraries in sites/default/libraries
(similar to the WYSIWYG module) would be really useful for us.
Comment | File | Size | Author |
---|---|---|---|
#4 | add_sites_default_to_search_path-1244108-3.patch | 3.18 KB | mparker17 |
#2 | add_sites_default_to_search_path-1244108-2.patch | 431 bytes | mparker17 |
#1 | add_sites_default_to_search_path-1244108.patch | 431 bytes | mparker17 |
Comments
Comment #1
mparker17I've prepared a patch that adds this functionality to version 7.x-1.x-dev.
Comment #2
mparker17Whoops... changed the version number too soon.
Here's a patch for 6.x-1.x-dev too. I've tested this one on the project I'm working on.
jquery_ui
successfully detects and uses the library.Comment #3
sunNot sure about this. $config (conf_path()) should already be set to 'sites/default' if your site lives in sites/default.
Why is that not the case?
Comment #4
mparker17And, here's a patch for 7.x-2.x. It's missing tests though...
Comment #5
mparker17@sun: where is $config(conf_path()) set? I cannot find any mention of it in settings.php.
Update:
Returns
sites/default
on the drupal-6.22 site I'm working on right now.Comment #6
mparker17My sincere apologies: it looks like I may have jumped the gun here. I missed the fact that the Libraries API was designed to pick up on conf_path().
As far as I know, the Libraries API hasn't found anything in
sites/default/libraries
in any of the Drupal 6 sites I've been working on lately, but I could be totally wrong and/or I could be setting things up incorrectly.I'll investigate this further. I'll close the issue if I'm the one at fault here. If there's a bug, I'll file it as another issue. If this is a valid request, I'll mark it as active again with a bit more explanation.
Sorry for taking up your time!
Comment #7
mparker17Turns out this is my problem... it appears that our script was not naming the folders inside
sites/default/libraries
correctly, so the module I was trying to use was unable to recognize them.Again, my apologies for taking up your time.
Comment #8
mparker17Unassigning