Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default php and templates

    we have gotten a page from an outside developer who works in php. i need to
    turn her sample page into a dreamweaver template. however, it looks as though
    when i make a page from template that some of the file paths are changed so
    that the related files cannot be located by the browser.

    for example

    my template code:
    <?php
    $pageTitle = "Title";
    $additionalKeyWords = "";
    $addtionalDescription ="";
    $updateDate = "July 7, 2006";
    include('includes/components.php');
    echo $pageHeader;
    ?>


    the page code on page made from template
    <!-- InstanceBegin template="/Templates/page.dwt.php"
    codeOutsideHTMLIsLocked="false" --><?php
    $pageTitle = "Title";
    $additionalKeyWords = "";
    $addtionalDescription ="";
    $updateDate = "July 7, 2006";
    include('Templates/includes/components.php');
    echo $pageHeader;
    ?>

    how should i be approaching this?

    thank you


    buttercupnli Guest

  2. Similar Questions and Discussions

    1. Libraries, Templates, Nested Templates, Repeat Regions,
      Hi I have eight categories to display in my site navigation. Each category has at least one (some have two) levels of subcategories. For example...
    2. No Templates
      Hello, My problem is that I have no templates in Contribute 3.0. I have tried whit but no result. Can I download all the templates or have...
    3. Issues with templates and nested templates
      Hello, I hope there is someone out there that can help me. I created a website using 1 main template and several nested templates. Everything...
    4. PHP Templates
      i need to place a block of PHP code at the start of every page - BEFORE anything &amp; everything; otherwise i get the infamous 'headers already sent'....
    5. Dreameaver Templates Applide to Templates?
      Hello, I was updating pages using templates today and I found that I had to create several templates to cover different styles of pages. There...
  3. #2

    Default Re: php and templates

    A template cannot contain a link like this -

    include('includes/components.php');

    since it implies that the include file is *in* the Templates folder, and you
    should never have anything in the Templates folder other than the templates
    themselves.

    If this file is in the Templates folder, please use DW's Files panel to move
    it somewhere else. If it's not in the Templates folder, then please convert
    this link to a root relative link rather than a document relative link.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "buttercupnli" <webforumsuser@macromedia.com> wrote in message
    news:ea32pi$flk$1@forums.macromedia.com...
    > we have gotten a page from an outside developer who works in php. i need
    > to
    > turn her sample page into a dreamweaver template. however, it looks as
    > though
    > when i make a page from template that some of the file paths are changed
    > so
    > that the related files cannot be located by the browser.
    >
    > for example
    >
    > my template code:
    > <?php
    > $pageTitle = "Title";
    > $additionalKeyWords = "";
    > $addtionalDescription ="";
    > $updateDate = "July 7, 2006";
    > include('includes/components.php');
    > echo $pageHeader;
    > ?>
    >
    >
    > the page code on page made from template
    > <!-- InstanceBegin template="/Templates/page.dwt.php"
    > codeOutsideHTMLIsLocked="false" --><?php
    > $pageTitle = "Title";
    > $additionalKeyWords = "";
    > $addtionalDescription ="";
    > $updateDate = "July 7, 2006";
    > include('Templates/includes/components.php');
    > echo $pageHeader;
    > ?>
    >
    > how should i be approaching this?
    >
    > thank you
    >
    >

    Murray *ACE* 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