Images not Displaying in XML Editor

This forum is for all Flare issues not related to any of the other categories.

Images not Displaying in XML Editor

Postby cepavel on Sun Feb 10, 2019 1:16 am

Hello all,

Hopefully you guys can help me out. I recently changed computers and moved my huge project from one computer to the other (through pulling a Git repository, if that matters.)

As a result of the move, the path in which my Flare project is hosted (as well as my user) has changed.

Now, when I launch Flare, none of the images are displayed within the XML Editor. When I go to the Text Editor, I see them there with the conditional "<img src="../../../Resources/Images/a4.png" />" URL structure.

When I generate the output, the images show up fine.

Is there anything I can do to make the images appear in the XML Editor?

Thank you!
cepavel
Propeller Head
 
Posts: 10
Joined: Tue Jan 23, 2018 3:42 am

Re: Images not Displaying in XML Editor

Postby cepavel on Sun Feb 10, 2019 2:14 am

In addition - when I insert an image it does not show up in the XML Editor, although I can see its code in the Text Editor.
cepavel
Propeller Head
 
Posts: 10
Joined: Tue Jan 23, 2018 3:42 am

Re: Images not Displaying in XML Editor

Postby devjoe on Mon Feb 11, 2019 7:11 am

Does the path ../../../Resources/Images/a4.png go outside the project?

Each ../ goes up one folder, so if you have topics at Content\foo\bar\baz\topic.htm then it would go up the three folder levels to Content and then down into the project's Resources folder to find the image. This should be fine in such a case, and whatever is causing your images not to appear is not related to this problem.

But if your topic containing such a reference is stored at Content\topic.htm then it is going outside the project with all the ..s to some other folder. This is not good, and you need to replace these links with ones that point to the images stored within the project - or add them if they are not there at all, and then link to them. You may be able to do a general search and replace on the paths if you figure out how they are systematically wrong, but you need to figure out what is wrong first. In this case, the links might be working coincidentally in the output, based on the path where that output ended up, and they really are missing in the source. It would be a good idea to open the source folder containing this topic, navigate three levels up, and see where you end up.

In general, there is no issue moving an entire Flare project from one path to another, or opening it as a different user (though your personal settings, mainly how you arranged the panes within Flare, will not carry over to the other user). What gets you in trouble is moving files and folders around within the project outside of Flare, or doing so within Flare and not allowing it to update links when it prompts you.
devjoe
Sr. Propeller Head
 
Posts: 296
Joined: Thu Jan 23, 2014 1:43 pm

Re: Images not Displaying in XML Editor

Postby cepavel on Tue Feb 12, 2019 12:45 am

devjoe wrote:Does the path ../../../Resources/Images/a4.png go outside the project?

Each ../ goes up one folder, so if you have topics at Content\foo\bar\baz\topic.htm then it would go up the three folder levels to Content and then down into the project's Resources folder to find the image. This should be fine in such a case, and whatever is causing your images not to appear is not related to this problem.

But if your topic containing such a reference is stored at Content\topic.htm then it is going outside the project with all the ..s to some other folder. This is not good, and you need to replace these links with ones that point to the images stored within the project - or add them if they are not there at all, and then link to them. You may be able to do a general search and replace on the paths if you figure out how they are systematically wrong, but you need to figure out what is wrong first. In this case, the links might be working coincidentally in the output, based on the path where that output ended up, and they really are missing in the source. It would be a good idea to open the source folder containing this topic, navigate three levels up, and see where you end up.

In general, there is no issue moving an entire Flare project from one path to another, or opening it as a different user (though your personal settings, mainly how you arranged the panes within Flare, will not carry over to the other user). What gets you in trouble is moving files and folders around within the project outside of Flare, or doing so within Flare and not allowing it to update links when it prompts you.


I greatly appreciate your reply! All of my images are within my Content/Resources/Images folder, so hopefully this isn't the issue at hand. I tried playing around with the folder structure and it did not seem to make a difference.

Do you know if there's a way I can prompt Flare to update links from within my Project?

Thank you!
cepavel
Propeller Head
 
Posts: 10
Joined: Tue Jan 23, 2018 3:42 am

Re: Images not Displaying in XML Editor

Postby cepavel on Wed Feb 13, 2019 2:21 am

Just to update - I contacted Madcap Support over this. They were extremely helpful. I ended up sending a zipped up copy of my Project to them and the issue was so simple yet so perfectly hidden...

Somehow, when I moved projects, the max-height and max-width attributes in my stylesheet under "Unclassified" was set to "none". Removing this completely fixed the issue.
cepavel
Propeller Head
 
Posts: 10
Joined: Tue Jan 23, 2018 3:42 am


Return to Flare's General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests