[support] path to images deep down in the filesystem

Michele Zaffalon michele.zaffalon at gmail.com
Fri Aug 14 19:51:56 UTC 2009


Thanks, that works.
Sorry to be such a pain, but is there a way to get away with the <?php
print ... ?> part? A part from writing function fun() { print
"very/long/path/" }
michele

On Fri, Aug 14, 2009 at 2:16 PM, Stefan
Nagtegaal<development at standoutdesign.nl> wrote:
> 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/ ]
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list