Ask a Question related to Macromedia Contribute General Discussion, Design and Development.
-
ROGM #1
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
-
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... -
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... -
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... -
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... -
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... -
Tom Benjamin #2
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



Reply With Quote

