Pasting text into a PHP Template

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Pasting text into a PHP Template

    This is bizarre...

    I have a PHP template. I built it in Dreamweaver, added some PHP code, and
    saved it as a PHP file (mytemplate.dwt.php). I use this template in Contribute,
    and it has worked fine. Until today when I tried to paste some copy from a Word
    document. I kept getting the error "You cannot perform this action this region
    of the page." Then I tried pasting just one paragraph, and it worked. So I kept
    trying different paragraphs and lines until I traced the problem to the work
    "include". I cannot paste this word into the editable region! I even typed the
    word "include" into Notepad to make sure there was no weird Word markup, and
    tried copying & pasting it in -- error. Any other word works fine -- even
    "including".

    I assume that Contribute thinks I'm trying to paste a PHP include into the
    region or something. Is this a bug? I tried pasting the word "include" into a
    non-PHP template and it worked okay.

    Alyssa

    bmjnine Guest

  2. Similar Questions and Discussions

    1. Pasting text with autoformatting in few text boxes
      My main problem is how to paste to 3 separate text-boxes plain text like this and have it formatted automaticly: 700,000 Cliff Road, Tramore,...
    2. UTF-8 encoded Template and pasting from Word
      We are having problems with Contribute retaining UTF-8 FILE encoding when creating a new page from a template. A little background info: We have...
    3. Pasting text
      In the process of putting together a newsletter and repeatedly get the message "could not complete the paste command because the text block is too...
    4. Pasting Text files into a text field?
      I want to past a text file into a text field but it looses it's format. It should appear in a table layout, is there a way round this? Thanks ...
    5. Pasting Text into Director Field?
      I am trying to create a Director application that allows users to enter data into another application. One of the fields is for the entry of a...
  3. #2

    Default Re: Pasting text into a PHP Template

    I tried the same, with the dwt.php template having the following code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>

    <body>
    <!-- TemplateBeginEditable name="EditRegion3" -->EditRegion3<!--
    TemplateEndEditable --><?php echo"Hello World"?>
    Simple dwt.php template
    </body>
    </html>

    it worked fine for me.

    Dominic Michael Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139