Ah, this is interesting.<br><br>Correct me if I am wrong, but css background images, for example, are relative according to best practices; likewise, in a module, things like the following are best practices (if you are forced to invoke from theme):
<br><br> <script type="text/javascript" src="<?php echo base_path() . 'misc/collapse.js'?>"></script><br><br>likewise path_to_theme(), drupal_get_path()<br><br>define("JS_directory", drupal_get_path('module', 'this_wonderful_module') . '/js/');
<br><br>Anyway, on a joyous note, today Tao Starbow announces yet another module, scanner, which offers search and replace in configurable content types and tables... maybe not everything being sought here, but a big help to some of the PITA procedures being mentioned.
<br><br>See his Global Search and Replace article <a href="http://www.starbowconsulting.com/node/88">http://www.starbowconsulting.com/node/88</a><br><br>Victor Kane<br><a href="http://awebfactory.com.ar">http://awebfactory.com.ar
</a><br><br><br><br><br><div class="gmail_quote">On Dec 9, 2007 1:24 PM, Khalid Baheyeldin <<a href="mailto:kb@2bits.com">kb@2bits.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><span></span>On Dec 9, 2007 10:54 AM, Michelle Cox <<a href="mailto:mcox@charter.net" target="_blank">mcox@charter.net</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>----- Original Message -----<br>From: "adrian rossouw" <<a href="mailto:adrian@bryght.com" target="_blank">adrian@bryght.com</a>><br>To: <<a href="mailto:development@drupal.org" target="_blank">
development@drupal.org
</a>><br>Sent: Sunday, December 09, 2007 8:37 AM<br>Subject: Re: [development] Files directory on installation usability fix<br>notquite usable. ; )<br><br><br>> Perhaps the path in the files table should be relative to where the
<br>> files directory is.<br><br></div>I've been wondering about this myself since I got bit by it in 4.7. I never<br>understood why the whole path is stuck in there. Makes it a real PITA to<br>move the files directory.
<br><font color="#888888"><br>Michelle<br><br></font></blockquote></div><br></div></div>Good point. This needs to be solved.<br><br>But, it will not address any themes or modules that are under site specific <br>directories (
e.g. sites/example.com/modules, sites/example.com/themes).
<br>For those, the domain name is still in the path of all images, css, and js<br>files.<br><font color="#888888">-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a><br><a href="http://2bits.com" target="_blank">
http://2bits.com</a><br>Drupal optimization, development, customization and consulting.
</font></blockquote></div><br>