[support] path problem
Victor Kane
victorkane at gmail.com
Sat Aug 2 10:58:14 UTC 2008
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 at 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/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080802/12a89df9/attachment.htm
More information about the support
mailing list