Design view in php files

can`t understand why, but, when I open php file which
contains some html formatting or not, (e.g. in *.html.php files of
CMS Joomla/Mambo) design view in DW-8 is inactive. When I rename
file to .html extension and open it then, design view is active and
I can work in WYSIWYG mode, but in previous versions everything has
been OK.
I was not need to rename files each time.
Is there solution or newest version of DW can not work in
design view with files exept of html extension?

Thanks for the tips but... design view won't open at all,
there's no errors or anything like that, it just -wont open-. It
wont let me click "design view", it just remains stuck in code
view, but it allowed me to view design view last week.
quote:
Originally posted by:
Newsgroup User
the "WVA - News" appears to be the include- and is a complete
html document
instead of just what is correct for where it's inserted.
rough fix-
suggest using an external stylesheet for the site, so you
don't need to have
each style in the head section. This will also reduce the
number of styles
and keep them consistent.
edit the WVA - News file. Select just after the <body>
tag and erase to top
of file. Erase </body> and </html> at the end of
file.
(tip- attach a "design time" stylesheet to the included file
to see and
select the styles of the new external css file)
or- brute force fix if don't care about syntax- go into dw
preferences/invisible items and turn off rendering of
included files. That
doesn't fix the problem, just prevents the errors from
confusing design
view.
> Are you using includes or scripted includes?
>
> there are several pairs of <body> tags, which will
totally confuse dw design
> view.
>
>> Ah, they're .php - here's the site so far if it
helps at all:
>>
>>
http://www.walsallva.org.uk/NEWSITE/index.php
>>
>> This worked fine in design view last week, but
doesn't this week. =(
>

Similar Messages

  • Can't view Wordpress PHP files in Dreamweaver CC.

    Mac. MAMP.
    I have downloaded my full site hosted on xxxx into MAMP htdocs.
    Download directly from root public_html on host.
    I keep getting "Dynamically-related files could not be resolved because the site definition is not correct for this server"
    Even if I go "live view" and set - Web URL to: www.indochinaexplorers.com (my site) - instead of http://localhost, it comes up with a lot of PHP boxes.
    Been through all tutorials for more than a week.
    Have been through all possible settings and configurations under "Manage Site"
    Did a Test - New PHP page. Same thing, it does not show, design or live view.
    So stuck,
    Thanks Peter

    I have the same issue and none of the alleged Guru's that answered have provided anything useful.  Solid Web Design is about workflow, which could lead to innovation if people would stop reverse innovation language...Dreamweaver could be a viable wordpress solution if it worked as it's supposed to. CC is a bust as the focus has shifted to mobile first. 
    There are no "real pages" for you to edit in DW; just code fragments.
    Wordpress is dynamically driven but this is untrue.  Every PHP file in a theme has structure and is a "real page".  Fragments have to be in a "file" to be called, they are not called out of thin air.  If I want to style page.php, it cannot be done without first adding selectors.  #mainContent for example. The only thing php does is add dynamic functionality.  Page.php can be altered and saved as Page_fullwidth.php, Page_Music.php ,Page_webDesign.php and they can all have a different layout in the same theme.  Else there would be no templates to choose from in the static page section of the WP Admin area. 
    Themes drive the appearance and functionality of your WP site.  If you need a new look, find a different Theme and install it from your WP Dashboard.
    How does this help?
    Unless you are very familiar with PHP code and more specifically the PHP code WP uses, you will not have good results working in DW.   You really must use the WP Dashboard to manage your content, Themes, and plugins.
    This has nothing to do with the issue.  The issue is Dreamweaver simply does not allow propper editing of wordpress sites in a dynamic environment.  No one ever said they didn't know anything about php, creating wordpress themes, plugins, and so on...
    Dear next genius..Since the question has already been asked, I won't ask it again, but the original inquiry is my issue as well.  If you have figured out how to make this work, please respond, if not, please don't.
    Mac

  • Cannot view body of page in Design View with PHP

    Hello, I hope some one can help me. I have a website that I
    am working that I am unable to view the body of the page in Design
    mode. This is a php file. I can preview the page fine by pressing
    F12, so it appears PHP is installed and my test server is working
    fine. Also my manager is able to view the body fine, so it appears
    that only I am affected. Both of us are using Dreamweaver CS3. Is
    there some setting on my local copy of Dreamweaver that I can
    change to make the page appear?

    CummingCorp wrote:
    > Hello, I hope some one can help me. I have a website
    that I am working that I
    > am unable to view the body of the page in Design mode.
    This is a php file.
    If the body of the page doesn't display in Design view, it
    means that
    your include files contain html, head, and body tags. Include
    files
    should contain only the code that you want included at that
    point. So,
    inc_header.php should contain only the div or other code that
    displays
    the header - and NOTHING ELSE. The same goes for
    inc_footer.php.
    When the page and the include files are combined, they should
    have one
    DOCTYPE declaration, one html tag, one head, and one body.
    Think of them
    as pieces of a jigsaw. On their own, each element is
    incomplete, but
    together they make a complete picture with nothing left over.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to view local PHP files with my browser?

    I want to learn PHP and be able to view files I create (stored in my documents folder) by my browser. I read I'd have to get into Apache via Terminal and make some changes to be able to view PHP. I took a look inside and ran across warning comments, which scared me off!
    Any suggestions?

    Pretty simple, ther arew no "warnings" to consider. Depending on your version of Apache you may need to enable the  PHP  module in the configuration file at
    /private/etc/httpd/httpd.conf
    Look for the part where it says
    #LoadModule  php 4_module
    and also
    #AddModule mod_ php 4.c
    and make sure those lines are uncommented by deleting the "#" character, then restart Apache to activate the new settings . When you acces a PHP page, you must do it through Apache by clicking this URL: http://127.0.0.1/ Remember that HTML files can be dropped in a browser, but to run a PHP script file you must use an Apache URL.
    Read more about Apache here:
    http://Gnarlodious.com/Computer/Apache

  • PHP Include not showing in design view

    One of the advantages of Dreamweaver is the ability to see
    the result of your code in the Design view. I am building a
    template set for a web site I'm starting, and will be using the
    template files in various paths and path depths. As a result, I am
    not interested in using relative paths for things like PHP
    includes.
    If I use the following code for an include, the 'main.php'
    file is included in the design view:
    <?php include('/includes/templates/main.php'); ?>
    When uploaded to the Apache server, this does not display
    properly, because it is looking for the file in the user root, not
    the Apache document root.
    The portable code solutions to this would be to use the
    following code:
    <?php
    include($_SERVER['DOCUMENT_ROOT'].'/includes/templates/main.php');
    ?>
    This shows perfectly when uploaded to the Apache server, but
    of course does not show in the Design view of Dreamweaver.
    It is ridiculous to think that someone would want code one
    way to see in the design view, and another for the web server, so I
    am assuming that there is a way to do this so that it works both in
    the desing view and on the web server.
    I have had limited success using:
    <?php virtual('/includes/templates/main.php'); ?>
    which shows up in both the design view and on the web server.
    However, I've experienced problems using virtual calls in scripts
    called by the virtual command. I.e. nested inclusions. It would be
    important to note that PHP's own documentation states "This
    function may be used on PHP files. However, it is typically better
    to use include() or require() for PHP files.", along with other
    warnings.
    So, basically, what I am asking for is a solution to allow
    the following code to work and show the included file in the design
    view:
    <?php
    include($_SERVER['DOCUMENT_ROOT'].'/includes/templates/main.php');
    ?>
    Any suggestions?
    BTW, I have tried setting the PHP include_path to the web
    root so that the first example above would work. Doesn't work. I
    have full, unrestricted access to the server, so if there is
    another setting or configuration change I can make to have the
    include function default to the web root, I'd love to know what it
    is.

    quote:
    Originally posted by:
    Newsgroup User
    It does that with all server-side includes, not just PHP. It
    only shows
    the HTML content of includes. To see dynamic output from a
    server-side
    language, you need to use Live Data view.
    I'm not referencing dynamic output from PHP processing. I am
    referencing includes. When using an include, Dreamweaver shows you
    exactly what it would show you if you were looking at the included
    file itself.
    However, Dreamweaver makes the assumption that <?php
    include('/inc/test.php'); ?> is a path located in the web server
    document root. This is not the same assumption that web servers
    make.
    The Apache web server (at least the several that I use),
    treat this same include as a request for /inc/test.php off of the
    root of the server. To achieve the same include, relative to the
    web document root, the include must be <?php
    include($_SERVER['DOCUMENT_ROOT'].'/inc/test.php'); ?>.
    Unfortunately, Dreamweaver does not understand this basic syntax
    and will not show the included file in the design view.
    The bottom line is that Dreamweaver could make it much
    simpler to build portable code if it understood this syntax on the
    include. You could take place that include in any location on your
    site and it would pull the include from the proper location in both
    your design view and on the web server.
    Keep in mind that we establish a "document_root" when we set
    up a site in Dreamweaver. The information is already there. The
    handling of it just needs to be added to the include parser.

  • View PHP Files in Expressions 4

    I downloaded PHP 5.5.8 and have been unable to view a PHP file in Expression Web 4. The Microsoft server open and all I get is a blank screen. I have opened the Site from the Site Menu, I setup the PHP.ini file as shown in the PHP.ini production file. I
    as unable to find a cg-php.exe file in the php download but I did find on online. The PHP.ini and cgi-php.exe are in the same directory as all of the web files. When I download the files to my website and run them they work fine. Can anyone give me some direction
    on how to make this work?

    Hi Jeff,
    If you are still interested to set up PHP, I had the similar to yourself and succeeded.  Basically, ignore the zip folder options and download the msi installer and make sure to install 'other web server' when given the option.
    MSI INSTALLER
    Following advice on here (thanks to Kathy, https://social.msdn.microsoft.com/Forums/expression/en-US/5ef17622-9147-4264-aee4-a40ed310a417/install-php?forum=web), I downloaded the installation
    file from  http://windows.php.net/download/, file: php-5.3.29-nts-Win32-VC9-x86.msi.  I then executed that file and installed it to C:\Programs\PHP\php5.3.29\
    An important note, when installing the msi it asked me which web server I wanted to set up.  Either  IIS Fast CGI or Other CGI.  I chose the former, but the message said FASTCGI is not installed on the current version,  so I chose 'other'.
    This is clearly the important step to ensure the php-cgi.exe file is installed correctly.
    I then launched EW and opened the index.php file and clicked F12 to preview it.  You should see the following alert:
    | Select a valid version of PHP in the Application Options dialog.
    | Application options | More Info
    | OK
    Go to Tools > Application Options > General Tab and that is where you can browse to 'Path to PHP executible file for previewing PHP pages', which is the php-cgi.exe you have just installed.
    Your testing server should be set up.
    Good luck.
    Andy

  • Design View not displaying external files...HELP!

    This is my second attempt asking for anybody's help. I'm using Dreamweaver 8.0.2 (OS X 10.4.11) and when I open "any" of my local files In "Design View" NO external files loads. Here's what I've done so far to no avail:
    Delete "site cache"
    Delete all pref files
    Made sure "Display External Files" is check
    Made sure "Style Rendering --> Display Files" is check (using screen media type)
    Check that my firewall is disabled
    Renamed local root DIR of site file
    Searched the web, forums, etc...none of the answers worked
    Reinstalled DW 8.....TWICE!
    2 weeks ago I did updates to my website and everything was just fine. And now, nothing is working. All I can see is text and all of DIV blocks...but all external CSS and INC files fails to load. Been trying to fix this for 2 days now. Can anyone "please" give me some ideas to fix this problem.

    Hi - without seeing the actual page code, I'll take a stab that possibly you've lost the link to your stylesheets...?
    If you view the code, somewhere inside the "head" tags (generally right under the "Title", you should have a reference to any of your external stylesheets/images, etc.) Something like this:
    <link href="name_of_stylesheet.css" rel="stylesheet" type="text/css" />
    If no images are showing up as well, my guess is that you've moved the page (or the images and stylesheet) into a different folder/or subfolder without updating the links.  Any time you move a file, it should be done within dreamweaver (and it will always ask if you want to update links). If you move a file without using DW, it will definitely break all links, and no amount of re-installing, re-caching, etc. will fix it (sorry)...
    If this is the case, the best way to rectify would be to move the file back to where you had it... if this isn't the reason for the broken links, you'll need to manually re-update all of the links because something else has broken the linkage... (sorry again...)
    Hope that helps,
    Jesse

  • PHP files showing white screen

    I use Bluehost as my hosting service and this problem has
    never occurred before using them as a test server. I run Mac OS X
    and recently followed the tutorial on setting up a PHP5 environment
    on my Mac. Problem is after doing everything as told and testing
    the php to see if it is operating, which it is, I tried viewing th
    PHP files (which only have database connections for dynamic message
    comments) and they only display white screens!! I had the site
    already designed and wanted to switch to this local host method so
    I don't update my site's files when testing changes to my
    pages...but this is not acceptable. I see that many people have the
    same problem on the net, but there are no solutions, just
    complaints. All the HTML pages display in the browser fine in my
    browser:
    http://localhost/~username/Sitefolder/,
    so why is that the php files render whitescreens?
    Apache is running, PHP is running.....I am using my old
    Bluehost SQL databases, but this should not be an issue. I don't
    wish to install MYSQL on my machine when I have it through my
    rovider, and i know this isn't the cause of the issue. Is this some
    faulty php syntax on Dreamweaver's part?

    Travis Coats wrote:
    > All the HTML pages display in the browser fine in my
    browser:
    >
    http://localhost/~username/Sitefolder/,
    so why is that the php files render
    > whitescreens?
    It means that you have an error in your PHP pages, and that
    your host
    has disabled the display of error messages (good for
    security). Put the
    following code at the very top of one of your PHP pages:
    <?php ini_set('display_errors', '1'); ?>
    Reload the page, and see what error message is generated. I
    suspect that
    you have an include file that cannot be found (probably the
    wrong path
    in the include command).
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PhpBB2 source code does not show in design view /CS3

    I would like to customize a php bulletin board.
    The default bulletin board page does not show in design view.
    Is there a way to do it , such that php code can be written
    by DreamWeaver via the design view ?

    > The files I am trying to edit, or that is think I should
    be trying to edit ,
    > are
    > index.php , and in the includes file template.php
    If I am sorting this out correctly, which i am _not_ sure of
    at the moment:
    those aren't .tpl files.
    they are .php files, and are part of the forum. They aren't
    displaying in
    design view because they are all php.
    You need to find and edit the template files.
    In previous link given:
    http://www.phpbb.com/community/viewtopic.php?t=10764
    <q>
    So where do I find these great 'templates'?
    Look in /templates/subSilver (thoroughout the FAQ I will be
    using subSilver,
    the default template. If you are using a different template
    then change the
    folder you look in accordingly). You will see a collection of
    files there.
    The templates are the ones with the file extension '.tpl' The
    majority of
    files in that folder are .tpl files. </q>
    strongly suggest you make a backup copy of anything you try
    to touch.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Firefox keeps asking me to open/download PHP file when it used to be able to display properly.

    I use to be able to view local PHP files normally in Firefox with the PHP parts not rendered while the HTML parts are. Now all it does is ask whether I want to open or save it.
    I've tried editing FF options so that it previews in FF but it doesn't accept any changes. I've cleared my cache and all that. I've tried deleting the mimeTypes.rdf file thing but I can't even find the folder it's in. I've tried disabling/enabling "prompts.tab_modal.enabled" in about:config and restarting FF.
    All are no-go solutions.
    Web PHP pages are loading properly, this problem only comes when I'm trying to load local PHP files. I don't want to install XAMPP or PHP on my computer just to view local files as I never had this problem before.
    In the meantime, I've installed Chrome and it's loading a simple local PHP file just fine whereas FF is asking me to save/download when opening the SAME file. Thanks in advance for any help.

    Yup, deleting mimeTypes.rdf and re-starting did the trick this time. Thanks very much!
    Also, on a somewhat related note, I cannot view mozillazine.org and any sub-domains under it in any browsers. This may be happening to other users as well?
    It's always stuck at "Waiting for ..." or "Connecting to ..." and that's it. Then FF gives up with a "Server connection time-out" notice. Clearing cache and all that doesn't work because I was trying to view those pages before starting this topic.

  • PHP file in DW but not in directory

    Hi all. I created a test file called datetest.php in my newly
    created local DW site but when I click on "Live Data View" I get an
    error that says either:
    1. .php file extensions are not being executed by the test
    server (I can view a php file in my browser so it is working)
    2. The C:\Program Files\Apache Group\Apache2\htdocs\ folder
    does not map to the
    http://localhost/Program
    Files/Apache Group/Apache2/htdocs/ URL on the testing server.
    The odd thing is I can see the datetest.php file in my site
    in Dreamweaver (it's there along with other php files like
    test.php). I saved it specifically to C:/Program Files/Apache
    Group/Apache2/htdocs/) but when I drill down to the folder in
    Explorer (I'm using Vista Home Premium) the file is not viewable,
    nowhere to be seen, so I think that's the problem. It can be seen
    in DW but not in the Vista folder itself.
    I've tried to change permissions for those folders but I
    still can't see the file so I'm not doing the right thing.
    Thanks for any insight and help!

    Hi all. I created a test file called datetest.php in my newly
    created local DW site but when I click on "Live Data View" I get an
    error that says either:
    1. .php file extensions are not being executed by the test
    server (I can view a php file in my browser so it is working)
    2. The C:\Program Files\Apache Group\Apache2\htdocs\ folder
    does not map to the
    http://localhost/Program
    Files/Apache Group/Apache2/htdocs/ URL on the testing server.
    The odd thing is I can see the datetest.php file in my site
    in Dreamweaver (it's there along with other php files like
    test.php). I saved it specifically to C:/Program Files/Apache
    Group/Apache2/htdocs/) but when I drill down to the folder in
    Explorer (I'm using Vista Home Premium) the file is not viewable,
    nowhere to be seen, so I think that's the problem. It can be seen
    in DW but not in the Vista folder itself.
    I've tried to change permissions for those folders but I
    still can't see the file so I'm not doing the right thing.
    Thanks for any insight and help!

  • Design view for jsp custom tags.

    when we drag-and-drop custom tag control in the source of jsp page, when we switch to the design view of jsp we should be able to view controls as desired.
    Observation: 1) Eclipse 3.2 doesn't have design view for jsp pages.
    2) which software uses the design view. we need to extend eclipse core framework and we do not find any technical approach document to proceed further on this.
    3) RAD 6.0 we can see a JSP in design view.
    I'm searching for any technical approach document to create plugin that can intercept the custom tags and provide a design view.
    Will any one suggest the plugin for that.

    Jeff,
    I have checked with engineering and found that JSP Design View support on
    Linux is a planned feature for the next release. I don't think we will have
    this feature as part of a Service Pack for 8.1
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Jeff Cassanvoa" <[email protected]> wrote in message
    news:3f4df04e$[email protected]..
    >
    Raj,
    Thanks for the information!! Any timeframe when it might be supportedon Linux
    Thanks,
    Jeff
    "Raj Alagumalai" <[email protected]> wrote:
    Jess,
    Unfortunately, the JSP design view is currently not supported on Linux.
    Workshop does allow to do remote development where the IDE is running
    on a
    Windows machine and connects to a server running on Linux/Solaris.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Jeff Cassanova" <[email protected]> wrote in message
    news:[email protected]..
    Does anybody else who is running the Linux version of Workshop 8.1have
    troubling
    getting the Design View of JSP files to come up. All I see is thesource,
    with
    no tabs at the bottom to switch to/from the Design View. When I bootover
    to
    Windows and run 8.1 Workshop, I see both tabs and I am able to useboth
    views.
    Is it something I have set in Preferences somewhere that disablesthe
    Design
    View ???
    Thanks,
    Jeff

  • Design view for jpd

    Hello,
    I just installed Weblogic workshop on my Mac running OS X - everything looks OK except the editor doesnt show design/source tabs for jpds ( shows these tabs for others). can anybody please help ?
    thanks
    meera

    Jeff,
    I have checked with engineering and found that JSP Design View support on
    Linux is a planned feature for the next release. I don't think we will have
    this feature as part of a Service Pack for 8.1
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Jeff Cassanvoa" <[email protected]> wrote in message
    news:3f4df04e$[email protected]..
    >
    Raj,
    Thanks for the information!! Any timeframe when it might be supportedon Linux
    Thanks,
    Jeff
    "Raj Alagumalai" <[email protected]> wrote:
    Jess,
    Unfortunately, the JSP design view is currently not supported on Linux.
    Workshop does allow to do remote development where the IDE is running
    on a
    Windows machine and connects to a server running on Linux/Solaris.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Jeff Cassanova" <[email protected]> wrote in message
    news:[email protected]..
    Does anybody else who is running the Linux version of Workshop 8.1have
    troubling
    getting the Design View of JSP files to come up. All I see is thesource,
    with
    no tabs at the bottom to switch to/from the Design View. When I bootover
    to
    Windows and run 8.1 Workshop, I see both tabs and I am able to useboth
    views.
    Is it something I have set in Preferences somewhere that disablesthe
    Design
    View ???
    Thanks,
    Jeff

  • There is no option to save,create or discover any php file

    This just started today 22/06,but there is no option to create a new php file,the options to create all types of files
    except php show on main screen,there is no discover dynamic files showing in bar,i can still type in the browser
    to view the php files i have already saved but cannot create new php files,any body got any ideas,i think its a
    problem with software.

    OK.   When DW starts acting weird, the first thing to try is Deleting Corrupted Cache in DW
    http://forums.adobe.com/thread/494811
    If that doesn't help, try Restore Preferences.  Note: this will wipe out your custom settings, extensions, etc... so back up what you need.
    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    If all else fails, use the CC Cleaner Tools below followed by a software re-install.
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Nancy O.

  • Design View Redraw problem

    As I edit in the design view of my file and scroll down the
    file to work on the content Dreamweaver CS3 fails to redraw the
    screen - for instance when I bold a word. When I scroll all the way
    to the top and back down the redraw occurs. This issue duplicates
    in DW8. Switching from Code to Design View does not redraw. I have
    tried numerous ideas to fix this and nothing helps. File is XHTML
    Transitional.
    Any help out there? This is KILLING me.
    - Phil

    Hi Will,
    Your monitor size does not matter, unless it's very low resolution, big issue is the drivers they use and something like this is typical of driver problems. My son is gamer and he finds problems like this all the time, even between different versions of the the updated drivers.
    If you don't want to update those drivers CR can not add code to work around a buggy video driver. You can always un-install them if they break something else.
    You don't need the CD/DVD to do a repair install, go to Control Panel, Add/Remove Programs and select Crystal. It should give you an option to repair.
    Thank you
    Don

Maybe you are looking for

  • Animated GIF in interactive PDF

    Hi all, I was wondering if someone could help me with the following; I want to add some animated GIF images to my interactive PDF document in InDesign (also with hyperlinks and video's) How do I need to save the document, in order to see an animation

  • "Access denied" when opening report on RAS Server

    I'm sure I'm doing something wrong, but I've only been able to open a report using the rassdk protocol from the server where my java code is running.    This is fine, but I was hoping for efficiency sake that I could have reports reside on the RAS se

  • My apple tv 3 stop working when play postcast and can not be restored

    I just bought apple TV 3 for 2 weeks. Everything is ok with setup and playing all functions. Yesterday, I playing postcast and suddently It stoped working and the screen was blank. I checked my Apple TV and the light was fashing very gast and it did

  • FBl3N Display Restriction

    Hi all, As we know In FBL3N report displays Line item wise details. when i click partcular line item it will displays respective line details.But i dont want to see respective line items details,i want to restrict that how can i achive in this regard

  • Problem regarding oracle 11g

    sir/mam i am facing a problem in installing the oracle 11g.. after installing the software. when i am going on command prompt then it is asking for user name and password. after then it is showing that connected to oracle. then when i am clicking on