As URL?
Assuming it were ./files, then try sthg like <?php base_path() . 'files' ?>
On Sat, Aug 2, 2008 at 9:15 AM, John Horning john@rivul.com wrote:
Thanks. Is there something like that to get me to the files directory? John
Victor Kane wrote:
Try the following:
<?php base_path() . path_to_theme() ?>/box_bottom.png
<img src="<?php print base_path() . path_to_theme() . "/pic/mary.png"; ?>" />
Victor Kane http://awebfactory.com.ar
On Fri, Aug 1, 2008 at 10:28 PM, John Horning john@rivul.com wrote:
Apparently Drupal does not allow you to reference absolute URL paths in scripts, which is causing me a problem. I have a script in my page.tpl.php that randomly picks images from a directory and displays them in the header. This works when you're on the top level, but not below since I'm using a relative path to get to the image directory. Can anyone tell me the proper way of doing this?
-- [ Drupal support list | http://lists.drupal.org/ ]
No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.10/1585 - Release Date: 8/1/2008 6:39 AM
-- [ Drupal support list | http://lists.drupal.org/ ]