Skip to main content
sandor77
Participating Frequently
November 26, 2018
Answered

dreamweaver images absolute path

  • November 26, 2018
  • 3 replies
  • 1149 views

hi everybody,
is it any possibility, when edit files locally and use for images absolute path, to be able to see/view it in edit mode / code desigh mode?

ex:
<p align="left">

text here

<img src="http://www.mydomain.com/images/image_name.jpg"" width="50" height="50" alt=""/>

text here

</p>

thank you.

Az üzenetet szerkesztette: Sandor Sandor

This topic has been closed for replies.
Correct answer WolfShade

The only way to do what you request is if you make a change and push it to the server and test it that way.  There is no way to use a full FQDN path (ie, "https://www.mydomain.com/images/image_name.jpg") locally.  The path is entered in DSN routers around the world and will point to that. 

Actually, I just thought of something.  If you need to test locally, then you can create a network that is isolated from the internet, set up your own DNS server, and register your FQDN (www.mydomain.com) internally and test locally that way.  But that's the only other way that I can think of.  You're probably better off using relative paths (ie, "/images/image_name.jpg").

HTH,

^ _ ^

3 replies

Nancy OShea
Community Expert
Community Expert
November 26, 2018

I have no trouble seeing remotely hosted images in Live View.  See screenshot.

Nancy O'Shea— Product User & Community Expert
WolfShade
Legend
November 26, 2018

https://forums.adobe.com/people/Nancy+OShea  wrote

I have no trouble seeing remotely hosted images in Live View.  See screenshot.

I think the OP wants to test locally and didn't understand that in order to use the FQDN then the code has to be pushed to the live server.

Another option would be to use a server-side language and set up variables based upon a conditional like FQDN:

<cfset thisURL = "http" />

<cfif cgi.https><cfset thisURL &= "s" /></cfif>

<cfset thisURL &= cgi.server_name & "/" />

If the server is a dev server and is local, the variable "thisURL" will appear as "http://localhost/", and the src can be <img src="#thisURL#images/image_name.jpg" />

If the server is production, then the same src value will appear as "https://mydomain.com/images/image_name.jpg".

HTH,

^ _ ^

sandor77
sandor77Author
Participating Frequently
November 27, 2018

Thank you WolfShade for the proposed solution,
unfortunatelly it is a bit complicated for me, so I will keep -as till now- editing locally then upload the files to the server, wiew them online, and made the modifications accordingly if it is needed.

Thank you ALL for your kind support!

B i r n o u
Legend
November 26, 2018

do you mean viewing the image in the code view ?...

if so just hovering the pathname of the image and a thumbnail should appear...

if not, sorry, and never min, I miss understood the question

sandor77
sandor77Author
Participating Frequently
November 26, 2018

hi ,

thanks for the answer. I meant in the code - design view, using absolute paths.

and thank you, I am aware about hovering the path name /link of the image.  :-)

WolfShade
WolfShadeCorrect answer
Legend
November 26, 2018

The only way to do what you request is if you make a change and push it to the server and test it that way.  There is no way to use a full FQDN path (ie, "https://www.mydomain.com/images/image_name.jpg") locally.  The path is entered in DSN routers around the world and will point to that. 

Actually, I just thought of something.  If you need to test locally, then you can create a network that is isolated from the internet, set up your own DNS server, and register your FQDN (www.mydomain.com) internally and test locally that way.  But that's the only other way that I can think of.  You're probably better off using relative paths (ie, "/images/image_name.jpg").

HTH,

^ _ ^

sandor77
sandor77Author
Participating Frequently
November 26, 2018

Thank you for your answer !

yes, when using relative path, it's OK, images can be seen w/o any problem!

and thank you for your advice, I will try to install a local server (xampp) and will try to test it this way too.