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

  1. #1

    Default D8 Templates Query

    D8 is my shortform for Dreamweaver 8).

    I am trying to create templates and getting in a bit of a pickle!

    I have 3 main level files (.shtml), trying to create a .dwt for the
    index.shtml).

    I have includes for the header, banner and footer. all work OK so far. Note
    that in a Contribute training book I am using it says that the best include is
    one which does NOT have the 'html' or 'body' tags - so I removed them to remain
    in the main file.

    The 1st problem is that I have "body class="body", etc so that I can control
    the "current" state of the main links. The template for the index file contains
    this as non editable - fine. BUT for the other pages I want ONE .dwt but this
    would seem to mean that I cannot have body class="2nd main page", and body
    class="3rd main page" in the same template for these pages which are the same
    in all other ways. Do I need a different template for each file or is there
    another solution or more likely have I missed the obvious?

    The 2nd problem relates to displaying the design view. The template design
    view I have for the index.shtml file does NOT see the CSS files so it shows
    "without css". I see that when creating the template it changed the includes
    from ./css/"mycssfile" to ../css/"mycssfile" for itself (apparently correct
    because it site same level as the css files). If I try various combinations of
    file/virtual in the site management or change the referencing in the includes
    and index either the dwt diplays ok but it does not render (as one would
    probably expect) in the browser or index D8 design view changes to "no css".

    Can someone save my keyboard in time?

    ROGM 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. 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...
    3. Query of Queries on query New type query
      In CF5 we have a page that creates a query, using queryNew and querySetCell and the like, we then used dbtype="query" and gave it's name so we could...
    4. 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...
    5. BCP query out executed by xp_cmdshell works fine from query analyzer but fails from VB Component
      Hi all, I have a stored procedure which returns a vast number of record and i have to write the output into a csv file. I'm using BCP utility to...
  3. #2

    Default Re: D8 Templates Query

    Where you have <body class="..."> can you instead include a CSS definition for
    body in a linked stylesheet. You can have a different stylesheet for each D8
    template file, and your stylesheets can contain pseudo classes for a:hover,
    a:link etc., see [url]http://www.w3.org/TR/REC-CSS2/selector.html#link-pseudo-classes[/url]

    Can you also try linking the stylesheets in a way D8 would normally do it with
    either:
    <link href="../css/mystyle.css" rel="stylesheet" type="text/css" />
    or:
    <style type="text/css">
    <!--
    @import url("../css/mystyle.css");
    -->
    </style>

    Tom Benjamin 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