Skip to main content
marnix-garner
Participant
August 6, 2019
Question

Images not displaying in Design View

  • August 6, 2019
  • 3 replies
  • 1438 views

How do I get images to display in the design view?

The images has a PHP code to them with <?php echo $DIR?> at the beginning.

The images appear in the live preview which obviously then runs the PHP server script.

This topic has been closed for replies.

3 replies

Legend
August 6, 2019

You can't in design view because of the server side/PHP code.

Either preview in browser or use live view

Paul-M - Community Expert
Nancy OShea
Community Expert
Community Expert
August 6, 2019

Old fashioned Preview in Browser requires a local testing server such as Wamp, Xampp or Mamp  to parse PHP code.

Setting up a PHP development environment for Dreamweaver | Adobe Developer Connection

Nancy O'Shea— Product User & Community Expert
marnix-garner
Participant
August 14, 2019

I already have since setup MAMP properly but it won't preview in the 'Design' mode, only 'Live' mode but this is no good as one can't select .i.e a picture or element for it then to select the code in the 'Code' window (using split screen).

Nancy OShea
Community Expert
Community Expert
August 6, 2019

Switch to Live View.  

Design view is mainly for plain vanilla, static HTML rendering.  It cannot parse PHP code or handle advanced CSS.   Design is useful for quick editing of text, DW templates and image maps.  But beyond that, it has little value.

Nancy O'Shea— Product User & Community Expert
Jon Fritz
Community Expert
Community Expert
August 6, 2019

As far as I know, there isn't a way to get Design View to run scripts of any kind.

It's always been that way, a bare bones, framework view that really has nothing to do with your design, but that doesn't fit on the tab, so they call it Design View.

marnix-garner
Participant
August 14, 2019

How does one work blind like this!!? When looking at the code to make amends, it's such a slow process to find what you are looking for quickly without any 'live' preview. One would select i.e. a picture in Dreamweaver 'design' view and then it would select the code in the 'Code' window for normal HTML sites. Wondering how people work efficiently with PHP sites? (Do people use different software?)

To work like this adds many, many hours to the job! Any suggestions on a better process would be greatly appreciated.