[support] path to images deep down in the filesystem
Stefan Nagtegaal
development at standoutdesign.nl
Fri Aug 14 18:16:06 UTC 2009
Michelle, yes offcourse there is....
Make a new node and use the PHP Input Format. Then do:
<?php
$image_directory = "very/long/path/to/this/folder/images/";
?>
Some custom content which is your story or article, and display your
images like this:
<img src="<?php print $image_directory; ?>image_1.png" width="xxx"
height="xxx" alt="Text1" title="Text2" />
That should do it!
Kind regards,
Stefan Nagtegaal
Op 14 aug 2009, om 18:44 heeft Michele Zaffalon het volgende geschreven:
> Hi,
>
> I would like to display images that are located in folder
> very/long/path/to/this/folder/images/ using <img src=...>, but without
> creating sym links in the current directory and without to retype the
> path everytime.
> Is there a way of saying the following:
> image_dir="very/long/path/to/this/folder/images/" and use it in <img
> src="image_dir/image_1.png" /> ?
>
> Thanks,
> michele
> --
> [ Drupal support list | http://lists.drupal.org/ ]
More information about the support
mailing list