New file Template = Busted HTML

Greetings - it has been long since I posted here. I hope someone can help me.

I have not used Dreamweaver in a while, but I'm sure I'm doing everything by-the-book. I also tried Googling for known issues with the templates and PHP code embedded, which is where this problem occurs, but I have yet to find useful resources on the topic. So, let's go.

I have a site defined in DW8. The configuration is PHP/MySQL, editing directly on the test server using a local area network path. The URL of the site is/is/servicemastertransfer /, and the folder the project root is w:\wwwroot\is\servicemastertransfer\. This folder has the following hierarchy:
----------
\
\admin\
\admin\admin.php
\images\
\images\spacer.gif
\review\
\review\review.php
\Templates\
\Templates\Test.dwt.php
index.php
----------

The problem is twofold:

(1.) after I create a new file from template Test.dwt.php and save to the root of the project (as test.php for example), links to the review file and admin are always listed as they are found in the model - i.e. the paths are still compared to the model, not the file. Thus, they appear as href ="... / review/review.php"instead of href = review/review.php".

(2.) there is a block of PHP code that is embedded in the model which seems correct in the original template file, but when the template is applied to a new page it is systematically distorted.

What should be:
----------
< div >
<? PHP if (isset($_SESSION[SESSION_NAME]['user']['user_nt'])) {? >}
"" < a href = "... / logout.php" title = "this will save you out of the system." > logout < /a >
<? PHP} else {? >}
"" < a href = "... / submissions.php" title = "you must be logged in to use this site. Click here to login"> Connect < /a >
<? PHP}? >
< / div >
----------

ends up like this:
----------
< div >
<? PHP if (isset($_SESSION[SESSION_NAME]['user']['user_nt'])) {? >}
"< a href="logout.phpimages/spacer.gif "width ="1"height ="1"border ="0"align ="right"/ >
<? PHP if (!) ARE_WE_LIVE) {? >}
< /a >
<? PHP}? >
----------

I went on the model PHP and HTML several times to validate the correct syntax and cannot find any instances of unbalanced tags or braces. I wonder if DW interprets some of my PHP syntax DWT? Otherwise, I'm helpless as to the cause. I enclose three files: DWT file, the result of the file-> new from template to test before you save it and the new file even after be saved under the root of the project. Note that the unregistered file sometimes relative paths and some cases of type file:/// full paths.

Never mind. I have upgraded to version 8.0.2 and then the basic pattern for the files in the site. Everything works as expected today.

Tags: Dreamweaver

Similar Questions

  • 'New file' extension .php stuck when I want .html

    It is 5.5 Dreamweaver Mac Mac OS 10.6.7.  In preferences, I have new documents will be html and the .html extension, but every time I do a right-click on a folder in the files window, the new file is automatically done as untitiled.php every time.  I think I've changed once I was doing a job on a php site.  But now it's happening in every site, I work with.

    Any ideas on how to solve this problem without deleting a bunch of parameters in Dreamweaver?

    Check the site definition and see if you have defined as PHP/MySql server model (Advanced tab on the remote server definition).

  • I can't add new tabs to my window, or by clicking on the little + on the right of the last tab or CTL T or the new file tab. This problem was recently

    1. Question

    I can't add new tabs to my window, or by clicking on the little + on the right of the last tab or CTL T or the new file tab. This problem was recently

    The Ask toolbar is initially only in versions of Firefox 3.6.x. uninstall this extension.

    There are a few places to check for the Ask toolbar:

  • create the new file using report generation express vi

    Hello

    In my application, I need to write that certain data in spreadsheet Excel. For whom I created an excel template and I used the express vi report generation Toolkit to record appropriate data in the columns of the place. I need a new file created every day by the name of the day and write the data that he rest of the day. I have problems, create the new file using this express vi. I tried to use the low level vi but not able to make properly.

    Join my code and the excel template.

    Help, please.

    Thank you!

    I suspect that your problem is illegal characters (' / ') in your path, certainly it is the case in your original vi. You need to format your path, something like this (underscore instead of a slash stroke):

  • adding new files or remove the old Windows Media Player files. (Vista)

    Since June 2010, I was not able to add new files or remove the old Windows Media Player files.  I can click on a new file and play using WMP or add to a playlist that is currently playing, but it does not recognize that it was added after as I close the program and re-open it.  Or I can delete the files that no longer exist on my computer but WMP always has them as my files.  When I click on add new media, it recognizes the right amount of files I would be adding, says to add them and then nothing is there.

    Your media library has probably been corrupted. To reset, follow the instructions for WMP 11 Vista at http://zachd.com/pss/pss.html#medialibrary . Note the reset of the library will make you lose all the counts to play and possibly ratings too. Tim Baets
    http://www.BM-productions.TK

  • When I try to open a NEW file or folder it gives me only 'Briefcase '?

    I just said.  Try to add a new file file, NEW and the only option is to Briefcase.   Help, please!

    You have installed chrome? It is an update of Chrome, (mid), is responsible. Here are two patches.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

    If still no joy, see the 'response' by Linda Yan in this thread.
    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.

  • My computer is no longer will allow me to create a new file in any software or photos or documents

    I can no longer create new files in any application, I have never encountered this problem, prior to this event.  System Restore has not been repaired?

    What happened a bit in the past, but we see a lot more often recently. Here are two options.
     

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
     

     
  • On windows 7, right click - new - * file * does not appear to create folders, I see other files word, excel etc. are appearing but not "folders".

    On windows 7, right click - new - *file* does not appear to create folders, I see other files word, excel etc. are appearing but not "folders".

    When I try to create Folders by right-click - New, it does not appear.

    Help, please.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.
     
     
     

     
  • I had an accident and now I can't create a new file or folder.

    original title: new file or folder

    I had an accident and now I can't create a new file or folder. When I try the NEW space is marked void

    You can restore with this guide:

    Windows 7 - new context Menu - delete & restore default Menu items
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

  • Create a new file option missing when right clicking

    I want to create new files by right click on my mouse. I click New and create a file icon is missing, but there are two shortcut icons.

    Original title: file icons.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html
     
     
     
     
  • No layout for new files

    Hello! I use the latest version of Dreamweaver, CC2015.1, on a Windows 8 machine. When I create a new file, I don't have any provisions listed in the options. Here's what look like Windows HTML and CSS. Should there be provisions therein, in particular the CSS option? If so, how can I get them? In other words, there are a few options under the grid of fluid (inheritance), whatever, but it's the only selection with features at all.

    New html layout.JPG

    New CSS layout.JPG

    Thanks for your help.

    Marcy

    A little, things have changed since the version you were using before. The 'old' have disappeared, replaced by items in Starter models on the far left of your screen.

    This will be based on page layouts, models of Bootstrap and sensitive starters.

  • Open a new file A4 on Adobe Illustrator CC 2015

    Hello

    I upgraded to Adobe explained CC 2015.

    When I start a new file A4 or A3 - it does not show the entire layout is missing the upper edge (see attached screenshot).

    I restarted the program and the computer - no luck!

    Can someone please provide me with more information on how to fix this problem or is it a glitch in CC 2015?

    Kind regards

    Ashan

    I have aveScreen Shot 2015-06-28 at 10.36.16 pm.png

    Hello

    We have published a 19.0.1 hotfix that resolves this problem in discussion on this topic. Please apply the patch to your creative cloud application. The creative cloud application checks the update once a day, so you may see the update immediately.  If you want to force the check for an update at the beginning please logout and log back into the creative Cloud application.

    Link to 19.0.1 release notes: https://helpx.adobe.com/illustrator/kb/illustrator-cc-2015-crash-bug-fixes-19-0-1.html

    If you continue to see any questions send us an e-mail to [email protected]

    Kind regards

    Ashutosh

    The name of the Illustrator team engineering

  • Savings will create new file each time. I forget to do?

    It's been a while that I used Dreamweaver. I open a new html file and it put in my DW folder with others from before when I used DW a lot. For some reason any everytime I try to save the changes, it creates a new file.

    It sounds as if you have not setup your site. Take a look at installation files in your site and project. Adobe Dreamweaver tutorials CC

  • New from template

    where is the function's "new from template" in dreamweaver cm³. I'm on an IMac X most recent operating system

    If you have a model in your defined site, go to file > New > site (4th option on the far left) templates > choose your site > choose your model

  • How can I generate a new file/link static?

    Im trying to figure out how to approach a problem. what I want to do is to generate a new file/link, perhaps using "cffile" or any other way.

    Right now I have cse_newsletter.cfm, which looks like this (type of)

    <html>
    .......
    <cfquery>
    select ....
    </cfquery>
    select ....
    <cfquery>
    </cfquery>
    .......
     <cfoutput>
          <h1>Starburst Star Award</h1>
         <h3>Winner: Department- #highest_dept_name_average#</h3>
         <h3>Average:  #hihest_dept_average# </h3>
         <h4>Runner-up: Department- #highest_dept_name_runnerup# </h4>
         <h4> Average: #highest_dept_name_average_runnerup# </h4>
      </cfoutput>
    </html>
    
    

    the query works and give me I want a correct output. (rigth now I use cfshedule to execute it, but every time I run it will overwrite the old data with the new) what he does, he gives me the data of the past month.

    so every tiime it works should give me the data from last month.

    I would like to do that whenever I click on transmission (maybe there is a better way to do it without submit) it will give me a static link/txt that contains the data.

    I know that with cffile = "Write" he can give me a txt file (and this file can be replaced), but I would preffer so is easier for me a link on cse_newsletter.cfm which will output/display which is on the body now to the cse_newsletter.

    Please give me any tips/suggestions, maybe an article I read online (have not found something that can help me)

    This right is the cfshedule, right now is on the update, so sure it won't work with the update, but I don't think that with what I want, I can accomplish with cffile 'writing '.

    <cfschedule action = "update"
        task = "TaskName" 
        operation = "HTTPRequest"
        url = "cse_execoffice_newsletter.cfm"
        startDate = "04/18/14"
        startTime = "11:19 AM"
        interval = "3600"
        resolveURL = "Yes"
     >
    

    Thank you

    I mean your cse_newsletter.cfm model can be designed to accept parameters to view a newsletter of a certain month and year. If it accepts URL parameters, then you can create a link to it like this:

    http://mydomain.com/cse_newsletter.cfm?month=1&year=2014

    And if the parameters are not passed, you could do that show the user a list of months and years (control for example via the selection list form) so that they can select the month and year they need. That's how he could design in any case. Unless your data is stored somewhere in a database, your model would never work for a scenario (last month), and it's a great limitation because no one can observe beyond newsletters. You may not write files to disc etc, because the model has just need to show correct information letter. You can create any link to the newsletter you need once it has been designed to accept parameters month and year (which are in turn to your CFQUERY tags to get the data).

Maybe you are looking for

  • Portege 4000 - upgrade RAM & graphic card driver installation

    I'm having some trouble with my Portege 4000 for the moment. I installed XP on a disk, but will no longer have that I have 256 MB of RAM... -Have you tried 2 manufacturers but the PC133 512 is not compatible. However, my system has an IBM of PC100 25

  • Drive external DRIVE of Toshiba PX1329E - 1 40 not detected

    Hello. Since yesterday my PC does not recognize the external HARD drive at all. I had this problem for a few weeks now - after that the start of the HARD drive did not appear, immediately, but after a few minutes/hours. And yestrday system is unable

  • Norton Ghost crushes on Satellite Pro A100

    Good afternoon everyone, I'm having a problem with a few laptops I have here. I just got a few Satellite Pro A100 but I have problems with making an image of the HARD disk. I tried Norton Ghost and a few other programs that can back up a disk to an i

  • Reset time.

    Hello! I have an equation for a very specific form of impulse that I just want to display a waveform graph. Its given based on time, so I just used the formula VI waveform. The equation is a polynomial. The trickiest part is I want that this chart th

  • 0 x 080070035

    Hello R U Ok? my system is a client of a domain with all permissions for my work with my colleagues, I share a folder in my system If the two I have access to it, the two she it access to this network share with my name or IP computer but I don't hav