Template Expressions in Library Items?
Hi All,
The quick question is this: can template expressions be made
to work inside library items?
Here’s the situation…
The page:
http://www.fretbank.com/basics/intervals/index.html
I have a 3-tier template structure in place – 1-Root,
2-General Page Structure, 3-Topic Categories.
If you look at the page, I have buttons below the header that
point to different topics. Each topic has several pages. All of the
pages from each topic are child-pages from a specific Tier-3
template.
The buttons use template parameters/expressions on the Tier 3
temp. to determine the state of the button.
I currently have to copy the code for the button nav into
each topics template and any changes have to be made in each
template. I am going to be adding many more topics and want to find
a shortcut. I guess I could make a 4th template tier and have each
of the category templates be children of that, but I’m hoping
to avoid this. It would be easiest to be able to make a library
item and paste it where I need.
I thought about using SSI’s but that wouldn’t
work with the expressions. Any other suggestions?
Thanks,
Troy
here's the code if it helps:
> Is having the link outside the div a problem in older
browsers?
It's invalid HTML. That's enough for me. And I suspect it
would be a
problem somewhere, as you are trying to make the entire
<div> tag a link.
> This allows me to only have to change each of these nav.
elements on one
> page.
I would opt for a single template structured so that changes
to CSS could
'specify' the particular section layout. Then I would choose
server-side
includes for the navigation elements, and place them into
strategically
placed editable regions of the single template, depending on
which section
you are needing to navigate.
Having only a single template is not only possible, it's MUCH
simpler than
nesting them.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Fret Man" <[email protected]> wrote in
message
news:[email protected]...
> Thanks for the reply Murray.
>
> A couple clarifications and questions. Sorry for the
length, but I felt it
> was
> better to be clear than concise.
>
> I am using nested templates.
>
> Since I posted the topic, I have changed my structure a
bit, trying to
> find a
> balance between flexibility and work load.
>
> I have a root template with has headers and common
includes.
>
> From the root template I nest multiple MAIN CATEGORY
templates for primary
> areas of the site. These templates contain the nav
buttons just below the
> header.
>
> From the MAIN CATEGORY temps I nest several SUB CATEGORY
templates for
> each
> topic in the category, which contain the code for the
"Quick Nav" box at
> the
> bottom of the page.
>
> The individual pages of the site are then built from the
sub category
> pages.
> The reason for all of the nesting is this: The MAIN
CATEGORY temps contain
> the
> code for the nav buttons and are built using temp.
expressions that look
> to a
> main category param on each of the sub category pages.
Depending on the
> param., the button that corresonds to which Main
Category you are in will
> be
> black (via CSS class)
>
> One the sub cat. temps the Quick nav link relative to
which page you are
> on
> will be black (also via CSS class)
>
> This allows me to only have to change each of these nav.
elements on one
> page.
> All of the different MAIN CAT. temps allow me to focus
advertising based
> on
> the subject. Maybe there is a better way to populate the
ads to different
> categories that I am not aware of? Is there a way to
have the button/links
> reflect the category/page you are on using only CSS? I
don't want to have
> to
> copy and paste changes to multiple pages when the
nav/topics change.
>
> ****
> I put the <a> tags inside the <div> tags,
based on multiple people telling
> me
> that I shouldn't do it the other way around. I hadn't
encountered any
> problems
> and liked that the whole button became a link. Is having
the link outside
> the
> div a problem in older browsers? I tested it this way in
IE7, Firefox2.0,
> Safari, and Opera, and it worked.
>
>
Similar Messages
-
Templates & Library items - best practice
I've been having a bit of a heated discussion about how
templates and library items should be used on medium to large
websites.
I'm of the opinion that you should have 1 template (or as few
as possible) and any differences be managed with Library items.
My colleague's argument is you should have a different
template for each section, so for example 1 for the news, 1 for the
features section (for magazine sites) so that if you have a banner
section wide you change that template, as opposed to the way I'm
used to which would be 1 template with multiple library items in
the editable regions of the template, my reasoning for this is the
large amount of html used for each template (like rollovers) can
become inconsistent when there's more than one template. Like if
you change something site wide you have to remember to change all
of the templates, if you do this with a simple copy past DW can
still make corrupt code if you use multiple templates.
So basically I was wondering if there was a standard or best
practice way of doing this.
ThanksYour colleague is mistaken IN MY OPINION. I think you are on
the right
track *unless* your section pages are *SO* different in
layout that you
cannot conveniently include all of the
alterations/permutations in a single
template page. Further, my current workflow is to rely
heavily on
server-side includes within template pages, as described here
Templates do make your life much easier. I use the following
scheme....
First, I mentally separate the page layout into three
sections:
1. Stuff that will not change for the life of the site (i.e.,
the basic
structural elements)
2. Stuff that *could* change from time to time (e.g.,
navigation elements,
burst advertisements, section-specific navigation, etc.)
3. Stuff that *will* change from one page to the next
Then I create a template containing all class1 elements. Next
I create
server-side include files containing all class 2 elements and
place them on
the template as needed. Note - some of the class 2 elements
may be
"section-specific elements", and their placement on the
template will be
subject to the next item. Finally, I insert editable regions
to cover the
class 3 items, INCLUDING the section-specific navigation.
This allows me to just cookie-cut the rest of the site. I
estimate that
even for fairly large sites, about 80% of my work goes into
planning and
creating this template file.
For what it's worth, I never use Library items....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"tefnut" <[email protected]> wrote in
message
news:[email protected]...
> I've been having a bit of a heated discussion about how
templates and
> library
> items should be used on medium to large websites.
> I'm of the opinion that you should have 1 template (or
as few as possible)
> and
> any differences be managed with Library items.
> My colleague's argument is you should have a different
template for each
> section, so for example 1 for the news, 1 for the
features section (for
> magazine sites) so that if you have a banner section
wide you change that
> template, as opposed to the way I'm used to which would
be 1 template with
> multiple library items in the editable regions of the
template, my
> reasoning
> for this is the large amount of html used for each
template (like
> rollovers)
> can become inconsistent when there's more than one
template. Like if you
> change
> something site wide you have to remember to change all
of the templates,
> if you
> do this with a simple copy past DW can still make
corrupt code if you use
> multiple templates.
>
> So basically I was wondering if there was a standard or
best practice way
> of
> doing this.
>
> Thanks
> -
Question about using library items in forms
After a long time I am again returning to this perpetual fountain of Dreamweaver knowledge.
I am converting a site from AGL to DW. In AGL I used a separate template for the forms (there are over 10) and used "components" to create the different forms. Each form shared features with other forms but were not identical, all together 5 components. When I converted over to DW the 5 compnents were made into 5 "library items" but neither the form template or the library items work, by that I mean they do not update if I make a change.
Hence I want to make 5 new library items to use in the forms my question is this: when I choose an item to put in the form like a text field or radio button I always get this window.
Though I read the documentation I am still not really clear about the "style" option so I just choose "no label tag." What is this used for? Any examples of how it is used?
Regarding "position" before or after the item, what is this all about? I have been choosing "after form item" but I don't really know what the difference is and what advantages or disadvantages acrue from these choices.
Regarding "Access key" and "Tab index" I sort of have the idea of what it is about but an example of how they work in action would clear up any nebulosity.
But my real puzzle is with the following which pops up at the end when I am inserting a form items.
Since the library items are not separate forms in themselves I have NOT added the form tag because my reasoning is that when I make the new form templates it will have the requisite form tags. Am I correct in this line of thinking? Or do I have to add form tags every time I add form elements to a form? I really don't want to have to do the whole thing over again if I get it wrong. So if one of you kind souls could guide me in doing it right the first time I would really appreciate it.
I am using a MBP, OS X 10.6.8, DW CS6
BvLTo declare constants create a Package-Specification in a pll and deifne all your constants there, something like:
PACKAGE PK_CONSTANTS IS
RC_SUCCESS CONSTANT PLS_INTEGER := 1;
RC_FAILURE CONSTANT PLS_INTEGER := 0;
RC_YEAR_DATA_NOT_FOUND := 50;
END;Then attach that pll to all your forms-modules, and use it like
IF rc = PK_CONSTANTS.RC_YEAR_DATA_NOT_FOUND THEN
END IF;A word about exceptions or errors: In my eyes its clearer (and in case of exceptions even better) to raise an exception than to hide it behind return-codes. -
InDesign CS6 newbie here.
I converted some Quark library items to InDesign. I've experienced the issue below on three different library items.
Each of these library items is a word or words with a 3-pt rule above and a .25-pt rule below. They were originally built with the font Arial Black OTF and included a style called Head Rules AB (for Arial Black).
When our newspaper converted from Quark 7.5 to InDesign CS6 we reorganized our fonts and, for no special reason, decided to go with Arial Black True Type.
Of course, when we first used these library items they showed up with missing fonts. My first attempt at a fix involved just changing the font in the library item and resaving it. Didn't work. Still showed up as missing.
I then did more exploration and thought the font was missing because the OTF font was assigned to the Head Rules AB style sheet. I fixed the style sheet and assigned to all of our page templates.
The library item still showed up with a missing font. I then checked our Character styles and noticed all the Arial Black-related styles had the wrong Arial Black font. I corrected that issue and rebuilt one of the library items from scratch. When I pull it onto a page it still shows up as the wrong Arial Black font.
Obviously there is something here I don't understand. If anyone can help, I'd greatly appreciate it.
Thanks.Are you talking about the print dialog box in Windows XP?
If so, then it is not a Report 6i issue but rather your OS. -
Error message with library item in template
I'm not sure if this is a PM issue or a DWCS3 issue. The only
way to find out is to ask.
I have gone through the process of creating a a library item
of a
PopMagic menu according the the video provided by P7. Works
well.
Then I added the library item to an existing DWCS3 template
and saved
it. When I attempt to create "new from template" page from
the template
menu, I get this error message
http://www.jdcdemo.com/blf/error.html
If I do the same with a template without the menu, the
error message goes away.
If I create a page with from a template where I've left an
editable
region for the menu and then insert the menu and save the
page, I also
get the error message, but the page seems to work ok.
Since I can't create a new page with the template, I opened
it and saved it as a page:
http://www.jdcdemo.com/baim/BLF8/error-message.html
What is going on here and is there a fix?
Thanks,
JoeLook at your code. Count <body> tags. How many do you
get? Yeah - that's
wrong. You didn't follow the video....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"camelbreath" <[email protected]> wrote in
message
news:g680gh$3c$[email protected]..
> I'm not sure if this is a PM issue or a DWCS3 issue. The
only way to find
> out
> is to ask.
> I have gone through the process of creating a a library
item of a
> PopMagic menu according the the video provided by P7.
Works well.
> Then I added the library item to an existing DWCS3
template and saved
> it. When I attempt to create "new from template" page
from the template
> menu, I get this error message
>
>
http://www.jdcdemo.com/blf/error.html
>
> If I do the same with a template without the menu, the
> error message goes away.
>
> If I create a page with from a template where I've left
an editable
> region for the menu and then insert the menu and save
the page, I also
> get the error message, but the page seems to work ok.
>
> Since I can't create a new page with the template, I
opened it and saved
> it as
> a page:
>
>
http://www.jdcdemo.com/baim/BLF8/error-message.html
>
> What is going on here and is there a fix?
>
> Thanks,
> Joe
> -
Library items in DWT templates
I have setup a dynamic menu and created a library item from
it. When I insert it into a new document (or update the library
item) the urls within it keep getting the prefix /library/ added
and so don't work:
original menu
===========
<div id="lhsidemenu">
<ul>
<?php
require_once('Connections/ecommercetemplate_523.php'); ?>
<?php
mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
$query_categorymenu = "SELECT sectionID, sectionName FROM
sections ORDER BY sectionName ASC";
$categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523) or die(mysql_error());
$row_categorymenu = mysql_fetch_assoc($categorymenu);
$totalRows_categorymenu = mysql_num_rows($categorymenu);
?>
<?php do { ?>
<li><a href="products.php?cat=<?php echo
$row_categorymenu['sectionID']; ?>" ><?php echo
ucwords($row_categorymenu['sectionName']);
?></a></li>
<?php } while ($row_categorymenu =
mysql_fetch_assoc($categorymenu)); ?>
<?php
mysql_free_result($categorymenu);
?>
</ul></div>
Menu after becomin a library item
==========================
<!-- #BeginLibraryItem "/library/categorymenu.lbi" -->
<div id="lhsidemenu">
<ul>
<?php require_once('
library/Connections/ecommercetemplate_523.php'); ?>
<?php
mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
$query_categorymenu = "SELECT sectionID, sectionName FROM
sections ORDER BY sectionName ASC";
$categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523) or die(mysql_error());
$row_categorymenu = mysql_fetch_assoc($categorymenu);
$totalRows_categorymenu = mysql_num_rows($categorymenu);
?>
<?php do { ?>
<li><a href="
library/products.php?cat=<?php echo
$row_categorymenu['sectionID']; ?>" ><?php echo
ucwords($row_categorymenu['sectionName']);
?></a></li>
<?php } while ($row_categorymenu =
mysql_fetch_assoc($categorymenu)); ?>
<?php
mysql_free_result($categorymenu);
?>
</ul></div><!-- #EndLibraryItem -->
doe anyone know how to resolve this? thanksYou are placing this library item into an editable region of
the child page?
Why do this instead of just using an include?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"bikeman01" <[email protected]> wrote in
message
news:[email protected]...
>I have setup a dynamic menu and created a library item
from it. When I
>insert
> it into a new document (or update the library item) the
urls within it
> keep
> getting the prefix /library/ added and so don't work:
>
> original menu
> ===========
>
> <div id="lhsidemenu">
>
> <?php
require_once('Connections/ecommercetemplate_523.php'); ?>
> <?php
> mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
> $query_categorymenu = "SELECT sectionID, sectionName
FROM sections ORDER
> BY
> sectionName ASC";
> $categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523)
> or
> die(mysql_error());
> $row_categorymenu = mysql_fetch_assoc($categorymenu);
> $totalRows_categorymenu = mysql_num_rows($categorymenu);
> ?>
> <?php do { ?>
>
<a href="products.php?cat=<?php echo
> $row_categorymenu['sectionID']; ?>" ><?php echo
> ucwords($row_categorymenu['sectionName']);
?></a></li>
> <?php } while ($row_categorymenu =
> mysql_fetch_assoc($categorymenu)); ?>
> <?php
> mysql_free_result($categorymenu);
> ?>
>
</div>
>
> Menu after becomin a library item
> ==========================
> <!-- #BeginLibraryItem "/library/categorymenu.lbi"
-->
> <div id="lhsidemenu">
>
> <?php
> require_once('
library/Connections/ecommercetemplate_523.php'); ?>
> <?php
> mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
> $query_categorymenu = "SELECT sectionID, sectionName
FROM sections ORDER
> BY
> sectionName ASC";
> $categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523)
> or
> die(mysql_error());
> $row_categorymenu = mysql_fetch_assoc($categorymenu);
> $totalRows_categorymenu = mysql_num_rows($categorymenu);
> ?>
> <?php do { ?>
>
<a href="
library/products.php?cat=<?php echo
> $row_categorymenu['sectionID']; ?>" ><?php echo
> ucwords($row_categorymenu['sectionName']);
?></a></li>
> <?php } while ($row_categorymenu =
> mysql_fetch_assoc($categorymenu)); ?>
> <?php
> mysql_free_result($categorymenu);
> ?>
>
</div><!-- #EndLibraryItem -->
>
>
> doe anyone know how to resolve this? thanks
> -
Help: Using templates with Library items
Hey there dreamweaver users
Just a quick question it might sound dumb but im new to the dreamweaver world and would be greatful if you could answer this question i have.
I have made a template for my site and i wish to update all the child pages with a library item i have inserted into the main template,
ive put it into the main template as a footer navigation links and then left dreamweaver to update all my other child pages with this library item.
the thing is it never works am i doing something wrong ? really could do with some help.
Thank you :]I only have one Template and this is it
<!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>Caribe Travel Services</title>
<!-- TemplateEndEditable -->
<link href="../caribe_styles.css" rel="stylesheet" type="text/css" />
<link href="../print.css" rel="stylesheet" type="text/css" media="print" />
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body>
<div id="container">
<div id="header"><a href="../starter.html"><img src="../assets/images/logo.jpg" alt="Caribe Travel Services" name="logo" width="213" height="144" id="logo" /></a></div>
<div id="sidebar">
<ul class="nav">
<li><a href="../packages/air.htm">Air Packages</a></li>
<li><a href="../packages/cruises.htm">Cruises</a></li>
<li><a href="../packages/inclusive.htm">All Inclusive</a></li>
<li><a href="../packages/resorts.htm">Resorts</a></li>
<li><a href="../packages/index.htm">Contact Us</a></li>
</ul>
<div class="sideContent"><!-- TemplateBeginEditable name="sideContent" -->
<h3>Heading 3 here</h3>
<p>side content here</p>
<!-- TemplateEndEditable --></div>
</div>
<div id="mainContent"><!-- TemplateBeginEditable name="mainContent" -->
<h1>Heading 1 Here</h1>
<p>main content here</p>
<h2>Heading 2 </h2>
<!-- TemplateEndEditable --></div>
<div id="footer"><!-- TemplateBeginEditable name="navLinks" --><!-- #BeginLibraryItem "/Library/altNav.lbi" -->
<ul>
<li><a href="../index.htm">Home</a></li>
<li><a href="../packages/index.htm">Packages</a></li>
<li><a href="../specials/index.htm"> Specials</a></li>
<li><a href="../galleries/index.htm">Galleries</a></li>
<li><a href="../testimonials/index.htm">Maps</a></li>
<li><a href="../testimonials/index.htm">Testimonials</a></li>
<li><a href="../newsletter/index.htm">Newsletter</a></li>
<li><a href="../contact.htm">Contact</a></li>
</ul>
<!-- #EndLibraryItem --><!-- TemplateEndEditable --></div>
<!-- end .footer -->
<!-- end .container -->
</div>
</body>
</html> -
Using library items in templates
I'm trying to use library items in a template but Dreamweaver
8 keeps on adding extra
extra closing tags. Is there some trick to using them?Why are you using Library items in a template?
Can you show me the Library item, and an example of the extra
closing tags?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"lynnkuh" <[email protected]> wrote in
message
news:eb0cnh$lno$[email protected]..
> I'm trying to use library items in a template but
Dreamweaver 8 keeps on
> adding extra
> extra closing tags. Is there some trick to using them? -
Spry Menu w/ templates or library items
I LOVE the new spry menu, but I'm frustrated with how to
insert an existing menu onto subsequent pages. I tried to add the
menu to the library but that didn't seem to work. Should I use a
template instead? I can't seem to find documentation on this...am I
missing something? Any advice?Not sure what that is...tried to look it up in the help
file...is it this?
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
{imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
If so, how do I attach it? Also, how do I edit once it's a
library item? I seem to lose that lovely spry interface in the
property manager.
If there is any documentation that you could point me to I'd
be grateful. I'm afraid I'm not finding it. -
i have created a template and on the side i have a list of
links that i change regularly (not in editable region). I dont want
to upload all my files everytime i change a link in the list, so i
thought a library item would be the go. However, when i update the
file it changes the template and it updates every file, that means
i have to upload all files. My question is, should i put the
library item in an editable region on its own, or what.
thanks> My question is, should i put
> the library item in an editable region on its own, or
what.
Whether you use a Library item or just a Template for this
will not affect
the workflow of -
1. Make a change
2. Upload all changed pages
What you would want to use if you don't want to have to do
that would be a
server-side include (SSI) (use DW's F1 help to read about
them). In this
case, your navigation would be in the SSI fragment file,
which would be
either in an editable or a non-editable region of the
template (use the
editable region approach in the event that you might want to
have different
navigation elements on different pages, and the non-editable
region approach
if you will not have different navigation elements). Then,
when you might
want to change navigation, just make the change to the
fragment file, upload
it, and magically all pages reflect the change.
When you use server-side includes, there are at least two
files involved:
1. The parent file
2. The include file
The parent file (the one RECEIVING the included file's code)
must be named
with a file extension that triggers a server parse to find
the include
directives (e.g., *.shtm(l), *.asp, *.php, etc.). Of course,
the extension
would have to match the server models supported by a) your
site definition,
and b) the hosting server. The include file (the code
fragment file) may be
named with any extension you desire (we joke here about
naming them with the
'monkeybutt' extension, since that extension name is
irrelevant to the
function of the file itself). HOWEVER, if the include file is
named with an
extension that DW doesn't recognize, then you will not get a
Design view
option when the file is opened.
For this reason, it's best to just name your include files
with the *.htm(l)
extension. Alternatively, if you *really* like
'*.monkeybutt', you can add
this extension to the list of file extensions that DW
recognizes -
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410&sliceId=1
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"deutschy" <[email protected]> wrote in
message
news:[email protected]...
>i have created a template and on the side i have a list
of links that i
>change
> regularly (not in editable region). I dont want to
upload all my files
> everytime i change a link in the list, so i thought a
library item would
> be the
> go. However, when i update the file it changes the
template and it updates
> every file, that means i have to upload all files. My
question is, should
> i put
> the library item in an editable region on its own, or
what.
> thanks
> -
How to make DW see Templates and Library items
I imported a site from another computer. Now it cannot see templates as templates or library items as library items. I am downloading the files from the server. The templates folder is there, but they are not showing up in the assets panel. They are also not updating when I save them.
How do I make DW see the templates and library items? It is a large site and I really don't want to have to recreate everything.I just had this problem and this is how I solved it:
1. Create a brand new template (can be empty) and save it
2. See where dreamweaver puts it in the files panel(more than likely will create a new template folder)
3. Completely move all templates from your previous template folder to the new one DW just created.
4. Voila - now check you templates under assets.
Caution:
1. First only copy one template to the new folder and check assets to test this theory before deleting the ones in the previous folder (if it works do be sure to delete the others)
2. To tell if a template actually works, select it then hit delete, if it simply warns you this can't be undone the template is NO GOOD. If it gives you a list of links you will destroy THAT'S THE ONE YOU WANT TO KEEP. The templates in the new folder should give you a list of links, any templates any where else will just give you a regular delete/warning message.
Hope this solution works for you, I'm just trying to help.
Michelle -
Dreamweaver Stopped asking if I want to update Library Items and Templates
Hi All,
Using dreamweaver on a new project. Set up my Templates and library items and everything was fine - when I changed one a saved it a dialogue popped up and asked me if I wanted to update files. Suddenly the dialog box has stopped appearing and now I have to instigate it manually by going to modify->templates->update pages which is annoying and more time consuming.
Why has the automatic dialogue disappeared and how do i get it back?
ThanksSorry for the late reply. I'm still having the problem and appreciate the help. Attached is the requested screen shot. Everything is in order I think. Its a big site though and the whole thing won't fit in one screen shot. What are you looking for specifically?
-
Using CSS instead of or with library item
I built my site using Dreamweaver 8. I used the design view
exclusively. I made a navigation bar as a library item. Utilizing
rollovers, etc. Now I have learned I should build my site utilizing
CSS and as was pointed out on this forum to me, to learn CSS and
HTML.
I am having a brain freeze. The logic escapes me as to how I
would build a navigation bar and put it on each page as I did
utilizing the library function before.
I am sure for all you pro's this is a really dumb and obvious
thing but I just don't seem to figure out the logic how to do it. I
am not talking about the CSS for the behaviors such as hover,
visited, active. This I know how to do. It is just the ability to
have a properly designed navbar and be able to put it on every page
I make.
Murry "ACE" told me not to use AP and the dreaded mm_menus so
I am trying to figure this out and build a better more code
efficient site. Mine works but is quite trashy in the code.It can be a bit daunting.
Try going through this tutorial completely. It's a bit out of
date (using
an older version of DW), and still covers the use of tables,
but it's worth
reinforcing your basic understandings -
http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
Then I would suggest you do this tutorial -
Taking a Fireworks comp to a CSS-based layout in Dreamweaver
http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt2.html
Finally, to get a grip on how to manage menus across an
entire site, use
DW's F1 help about how to use Templates, and server-side
includes.
Templates do make your life much easier. I use the following
scheme....
First, I mentally separate the page layout into three
sections:
1. Stuff that will not change for the life of the site (i.e.,
the basic
structural elements)
2. Stuff that *could* change from time to time (e.g.,
navigation elements,
burst advertisements, section-specific navigation, etc.)
3. Stuff that *will* change from one page to the next
Then I create a template containing all class1 elements. Next
I create
server-side include files containing all class 2 elements and
place them on
the template as needed. Note - some of the class 2 elements
may be
"section-specific elements", and their placement on the
template will be
subject to the next item. Finally, I insert editable regions
to cover the
class 3 items, INCLUDING the section-specific navigation.
This allows me to just cookie-cut the rest of the site. I
estimate that
even for fairly large sites, about 80% of my work goes into
planning and
creating this template file.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"craigmini" <[email protected]> wrote in
message
news:[email protected]...
>I built my site using Dreamweaver 8. I used the design
view exclusively. I
> made a navigation bar as a library item. Utilizing
rollovers, etc. Now I
> have
> learned I should build my site utilizing CSS and as was
pointed out on
> this
> forum to me, to learn CSS and HTML.
>
> I am having a brain freeze. The logic escapes me as to
how I would build a
> navigation bar and put it on each page as I did
utilizing the library
> function
> before.
>
> I am sure for all you pro's this is a really dumb and
obvious thing but I
> just
> don't seem to figure out the logic how to do it. I am
not talking about
> the CSS
> for the behaviors such as hover, visited, active. This I
know how to do.
> It is
> just the ability to have a properly designed navbar and
be able to put it
> on
> every page I make.
>
> Murry "ACE" told me not to use AP and the dreaded
mm_menus so I am trying
> to
> figure this out and build a better more code efficient
site. Mine works
> but is
> quite trashy in the code.
> -
Dreamweaver Teamplate with Library Item for Navigation/Sidebar not updating editable classes
I have a Dreamweaver Template that contains two Library items. One Library item is my navigation bar, the other is a sidebar that shows different content depending on what page you are on. I'm assigning an editable class "active" to the navigation bar to show you are on a particular page, and also assigning the editable class "active" to the sidebar to reveal a portion of the sidebar with links pertaining to that specific page. The default value for the class is "hidden". So what is happening is when I open a page I have created and "edit" the Library Items in it to edit these classes, it resets resets all the other pages on the site to the default class values. How am I able to use editable classes and Library Items to achieve this kind of functionality? The idea is to only have ONE navigaton bar to update on the site and to only have ONE sidebar item to update. Here is an example of the sidebar and navigation in action so you can see what I'm going for. Notice the green button in the navigation bar (that is a list item with the class "active" which is an editable class in the Library Item, also notice the tan links in the sidebar, that is an unordered list that has an editable class of "active" in the Library Items --- these editable classes reset to their defaults when updating the Library Item on the website).
http://www.brumleve.org/joe/temp/CAP/mission.htmlIn my understanding, whenever you edit the contents of a library item, it will update all other occurances of this library item on the rest of the site. That's "working as designed" as far as I know, unless you break the link by telling it to not update - which kinda defeats the purpose I think.
But theres another way to do this using template properties, i#ve been using this approach myself a couple of times:
Write your navigation bar in the template (.dwt) file itself, then select the class= of your first menu item and choose .. (names might be off, I am using a non-English copy of DW): "modify > template > make attribute editable" from the main menu. Do so for all your menu items and name these new template properties something like "item_x_class"
You'll end up with something like this in your template source:
<div class="@@(item_1_class)@@">
and a matching
<!-- TemplateParam name="item_1_class" type="text" value="active" --> in the header
Now, on each page, you can set the class within the template properties dialog ("modify > template properties"). If your main menu changes, it won't overwrite your template properties, but still update all pages when you do make a change to the menu.
If you're using multiple templates for your site, consider nesting templates, so the master template already includes your navbar and all subsequent templates will "inherit" changes to the navbar code (sans the editable class property).
Hope this helps.. or at least gives you an idea for further experiments..
Stephan -
How to use a Spry Menu as a Library item?
Okay, this is my second post; but, with a different title.
I made a Spry menu for my Home Page. I saved it and a logo
together as a library item and placed the library item on a second
page. The links in the menu work when there is no style sheet
attached for the Spry meny and the menu appears just as text; but,
as soon as the .css style sheet for the menu is attached to the
second page, the menu appears correct except the drop down menus do
not work. I tried adding a link to the Spry Java Script file as it
is on the home page; still no luck.
I tried the same with a test file, which I have since
removed, stored at the same folder as the home page; same problem.
How are we suposed to make a workable library item with a
Spry Menu? Surely this is possible, no?
Here are the two pages I am referring to:
Good Page:
http://iculver.com/
Bad Page:
http://iculver.com/pages/AboutUs/Personal_info.htmlApologies - my mistake. You are correct, and my instructions
were
incomplete. That other bit is required too.
> Now, I thought (probably in error) that items after !--
were comments, but
> it
> seems to be required, too. I tried eliminating taht part
and the menus did
> not
> work. I need all of this last part.
The comments 'hide' the scripting from validators and older
browsers, but
it's still recognized as javascript, since the comments occur
INSIDE a
<script> tag.
> these Spry Menus in Libraries easier to use...)
It's not so hard once you get all the pieces together.
1. Create the library item as described.
2. Make sure that each page that is to carry this library
item has the
required links in the head (to the CSS and the js files), AND
in the body.
Why not use a template instead? That way, all of these links
are managed
for you.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"JustBob" <[email protected]> wrote in
message
news:[email protected]...
> Hummm...
>
> Now, don't yell at me, okay? I'm a goLive switcher and
really a graphic
> designer, not a coder...
>
> So, It seems from the above message that I am to
establish the links to
> the
> script and the css file before inserting the library
item. But, either
> way,
> that didn;t do the trick for me. I did find a bit of
code in one of the
> pages
> that seems to be required.
>
> It seems I also need to insert this just before the
close of the body tag:
>
> <script type="text/javascript">
> <!--
> var MenuBar1 = new Spry.Widget.MenuBar("MenuBar",
> {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
> imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
> //-->
> </script>
>
> Now, I thought (probably in error) that items after !--
were comments, but
> it
> seems to be required, too. I tried eliminating taht part
and the menus did
> not
> work. I need all of this last part.
>
> I'm sorry I'm such a dope. I probably did something
funny when I was
> styling
> the menu. (I do hope Adobe can accommodate dopes lime
me, though, and make
> these Spry Menus in Libraries easier to use...)
>
> Thanks for all of your help! Really!
>
Maybe you are looking for
-
Questions on Report Builder and Graphics Builder
Hi there: I'm currently using Report/Graphics builder V 6.0.8.11.3 NT version to create RDF and OGD files. I was wondering with the following confusions: 1) Is the RDF/OGD file that I create under NT plat form portable to Sun Unix?? (ie. would Report
-
What is the name of the file I need to resync back to what I had before I reinstalled Windows7/Itunes? I don't want to lose all of my apps. iTunes does see the phone but either has miscalcuated and told me I'm over the size of my allocated sizes for
-
I have had my music/movie library (approx. 50gb) stored on an external hard drive and have been managing the music with iTunes for my iPod. Now, for some reason, approx. 75% of my library has an exclamation point next to the song name on iTunes indic
-
Hello, my Macbook now getting slow, how can I make it fast and fix it?
How to make my Macbook fast and kill the risks?
-
HI Friends, I would like to restrict sales order until unless customers pay the Due amount in last Transactionu2019s would be Exceeding payment due date or Outstandings .(No Customer Block in VD05 OR FD32) Regards,