Page 1 of 1

Snippets and Images

Posted: Thu May 15, 2008 1:34 am
by Robotman
Hi,
(this is probably easy and I'm probably tired but...)

Ok, I have created snippets that include graphics.

If the snippet is included in Level 1 it works and the images are displayed correctly. But if I insert the snippet into a Level 2 or 3 topic it displays the 'missing file' grey box. Now, I know why this happens and the two solutions I can come up with are:
1. Convert snippet to text and fix up the image links.
2. Create a copy of the snippet and call it Level 2 Snippet.flsnp

Both are fine solutions - but I'm assuming (or hoping ;) ) that there's a better of way of managing something like this. (a solution that, say, has the images sourced from where the snippets are located in the system rather than where the topic is located).

Thanks,

Re: Snippets and Images

Posted: Thu May 15, 2008 5:20 am
by Andrew
If a relative reference of any kind in a snippet is not being automatically converted to a relative reference applicable to the target topic, then that sounds like a bug to me. I'd submit that as a bug report (assuming there isn't some solution we are missing).

Re: Snippets and Images

Posted: Thu May 15, 2008 8:36 am
by LTinker68
I just tried it and it worked for me. Same snippet in the root and in a sub-folder and the image came through in both locations. How did you insert the image into the snippet topic? I used the image icon on the XML Editor toolbar.

Re: Snippets and Images

Posted: Thu May 15, 2008 8:43 am
by QBF
I have 6-8 Snippets that include images that are in hundreds of topics without any problem. I'd be interested in knowing what caused your problem as I would like to avoid this issue.

Re: Snippets and Images

Posted: Thu May 15, 2008 6:31 pm
by Robotman
Will try to get you an update before the weekend. Will check some the code for the snippet.

Thanks for the responses.

Re: Snippets and Images

Posted: Thu May 15, 2008 6:50 pm
by Robotman
Ok, problem solved.

I had created snippets by opening a topic in notepad, copying the code, and pasting it into a snippet file (which obviously kept the original image file locations).

Resolved by opening all the snippets and resetting any 'missing link' images.

*hides*

:)

Thanks all.