[support] path to images deep down in the filesystem

Stefan Nagtegaal development at standoutdesign.nl
Sun Aug 16 11:19:31 UTC 2009


Nope, there isn't...
Sorry...

Stefan

Op 14 aug 2009, om 21:51 heeft Michele Zaffalon het volgende geschreven:

> 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/ ]
>>
> --
> [ Drupal support list | http://lists.drupal.org/ ]



More information about the support mailing list