Relative referencing using library items
Hi,
I use a menu which is a library item. When the library item
is imported into the html pages, DW changes the relative references
to web pages. Specifically, a link to a page in the main directory
is changed from "../link.htm" to "/link.htm" as the library items
are located in a subdirectory to the main folder.
However, for the links to work, the code needs to be
"link.htm" for the link to work - the "/" confuses the browsers.
Is there any way of changing the settings in DW to not insert
the "/"?
Lotte
IF it is a plain html A HREF link in the library item, IF
it's the correct
path IN the .lbi file, dw will manage the path and it will
work anywhere in
the site.
Open the .lbi library item file.
do a link check, File-->Check Page-->Check Links.
fix any broken links so they work IN the .lbi file.
A second possible-
"../link.htm" to
"/link.htm"
/link.htm is a site root relative path.
IF /link.htm doesn't work- what should it be?
Does this site have it's own domain name, or is it hosted in
a subfolder of
another domain?
example urls with the broken links please if things aren't
clear.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/
Similar Messages
-
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? -
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. -
Multiple Body tags error when using library items
Hi all,
I have a navbar that I created in FW and exported as a DW
library item. When I drag and drop the library item (navbar) into a
site page, I get an error every time I try to save that page. The
error states that the body tag was in the wrong place and has been
moved to the right place. The problem is never fixed though and I
keep being spammed by the error dialog.
In reviewing the code, it appears that the library item has
its own body and preload. So adding the library item to the page
causes a duplication of the body tags and preload images code.
Any thoughts as to how I can fix this or avoid it would be
greatly appreciated.You are right, no <htm> <body> or css styles go
into a library item.
Nadia
Adobe� Community Expert : Dreamweaver
http://www.DreamweaverResources.com
- CSS Templates|Tutorials
http://www.csstemplates.com.au
http://www.perrelink.com.au
- Web Dev
http://www.adobe.com/devnet/dreamweaver/css.html
CSS Tutorials for Dreamweaver
"Mabou2" <[email protected]> wrote in
message
news:e906ap$ed8$[email protected]..
> Hi Osgood,
>
> I have a vague recollection of hearing or reading that
library items are
> not
> supposed to have anything like a <body> tag or
code that makes them act
> like an
> html page, but I can't remember clearly enough to take
action.
>
> I would love to hear from someone who knows the library
paradigm.
> -
Hi,
Can anybody help me on the following scripts.
I have a Indesign library which contain Box Frame. This a text frames.
What I want is, pull the element from the library and place some text in the textframe and place that element in the indesign pages either top or bottom.
I am able to pull the element from the library. But unable to place the text into the textframes and place top or bottom.
Can anybody help me on this.
My coding is below.
var graphicLibrary = new File("/Users/Hurix/Desktop/Books/Library.indl");
if (graphicLibrary.exists) {
app.open(File("/Users/Hurix/Desktop/Books/Library.indl") );
else {
alert("Creating new Library");
var graphicLibrary = app.libraries.add(File("/Users/Hurix/Desktop/Books/Library.indl"));
var getGraphics = getGraphicsFunc(graphicLibrary);
function getGraphicsFunc(graphicLibrary)
var t = app.libraries.item(0);
libList = t.assets.everyItem().name;
for (var i=0; i<libList.length; i++)
myAsset = t.assets.item(i);
var libItem = myAsset.placeAsset(app.documents[0]);
My XML Code:
<sidebar>
<p>XXX</p>
<p>xxx</p>
</sidebar>
Ram
Message was edited by: hurix@123Hi Hurix,
You already request the same in the below mentioned thread. Why you not try, Don't expect everything in the forum.
http://forums.adobe.com/thread/576971?tstart=0
Note: Please apply correct answer if any one given the code. Please do the correct answer or help answer. Still you have lot of unanswered thread in your profile.
thx,
csm_phil. -
Changed a Library Item and now my CSS no longer works!
I am so frustrated I am almost in tears. I created a menu in a roughly 7 page website and used DW Library menu to put it on additional pages. Everything was working fine and then I changed a path to one of my links and hit the button to update the rest of the pages and that's when it happend. My CSS was gone, no longer applying to any of my menus. I created an additional CSS sheet just to style my menu and it worked fine up until I changed a frickin link to one my menu icons. Now my CSS sheets won't apply at all. I have no idea what has happened and why me changing the path of a link would void out my styles. Has anyone else had this happen? Suggestions are greatly appreciated. Thanks!
I don't want to rub salt into your wounds here, but why are you using Library Items for menus? That's what DW Templates are for.
http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
Or better still, Server-Side Includes.
http://www.smartwebby.com/web_site_design/server_side_includes.asp
Shortcomings of Library Items: they cannot be inserted into the <head> tags of documents. Nor can they contain code that belongs in the <head> tags. Library items can only be inserted into the <body> tags.
My advice is to run your code through the online validation tools below and fix reported errors.
HTML - http://validator.w3.org/
CSS - http://jigsaw.w3.org/css-validator/
If you can't solve the problem yourself, upload page(s) and supporting files to a public web space you control and post the URL here.
Nancy O. -
Library Items won't Update!!
Argh, I've broken my menu for my website, which is a library item. I was getting an error when I validated one of the pages, and found it was an issue with my list not being properly nested within the library item's html. I thought I'd be smart and add a doctype to the library item, so that I could validate it on it's own and pinpoint the problem.
Apparently, the doctype addition was added into all of my pages that contain the library item. Now I can't seem to easily get rid of it! I changed my menu's html to get rid of the doctype, but this change is not reflected when I update all pages. I go to Modify>Library>Update Pages... and choose to update the entire site. Nothing happens! The doctype is still in all of my pages that contain the menu, and it breaks the page (nothing shows in the Design view window.)
Please help! I really don't want to have to delete and reinsert the menu on every page of my website. : (
Here's an example, with the doctype error in the library item "menu-multilevel.lbi":
<!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" />
<meta name="description" content="Best prices on black & white copies! Located in Beavercreek, Ohio, we offer printing services including color copies, business cards, flyers, graphic design, large format printing, coil binding, and more."/>
<title>World Digital Imaging - Contact Us</title>
<link href="../css/wdi-basic.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColHybLtHdr #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it may need to avoid several bugs */
</style>
<![endif]-->
</head>
<body class="twoColHybLtHdr">
<div id="container"> <a name="top" id="top"></a>
<div id="header">
<div><img src="../images/page-elements/black-bar-title.gif" width="649" height="135" alt="World Digital Imaging" /></div>
<!-- end #header -->
</div>
<div id="sidebar1"><!-- #BeginLibraryItem "/Library/menu-multilevel.lbi" --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<body>
<div id="nav">
<div id="navbody">
<ul id="navlist">
<li><a href="/index.html">Home</a></li>
<li><a href="/pages/about/about-us.html">About Us</a>
<ul>
<li><a href="about/facilities.html">Our Facilities</a></li>
<li><a href="about/people.html">Our People</a></li>
<li><a href="pricing.html">Our Pricing Structure</a></li>
</ul>
</li>
<li><a href="/pages/productsandservices.html">Products & Services</a>
<ul>
<li><a href="productsandservices.html#standard">Standard Copies</a>
<ul>
<li><a href="products/standard-copies.html">Black & White Copies</a></li>
<li><a href="products/standard-copies.html#color">Color Copies</a></li>
</ul>
</li>
<li><a href="products/lgformat.html">Large Format Printing</a></li>
<li><a href="productsandservices.html#bizproducts">Business Products</a>
<ul>
<li><a href="products/business/bizcards.html">Business Cards</a></li>
<li><a href="products/business/forms.html">Carbonless Forms</a></li>
<li><a href="products/business/emp-manuals.html">Employee Manuals</a></li>
<li><a href="products/business/envelopes.html">Envelopes</a></li>
<li><a href="products/business/flyers.html">Flyers/Brochures</a></li>
<li><a href="products/business/labels.html">Labels & Stickers</a></li>
<li><a href="products/business/letterhead.html">Letterhead</a></li>
<li><a href="products/business/marketing.html">Marketing Info</a></li>
<li><a href="products/business/postcards.html">Postcards</a></li>
</ul>
</li>
<li><a href="productsandservices.html#promotional">Promotional Products</a>
<ul>
<li><a href="products/promotional/calendars.html">Calendars</a></li>
<li><a href="products/promotional/magnets.html">Magnets</a></li>
<li><a href="products/promotional/notepads.html">Notepads</a></li>
</ul>
</li>
<li><a href="productsandservices.html#event">Special Event Products</a>
<ul>
<li><a href="products/events/graduation/graduation.html">Graduation
Party </a>
<ul>
<li><a href="products/events/graduation/gradpackages.html">Graduation Packages</a></li>
<li><a href="products/events/graduation/gradguestbook.html">Guest Books</a></li>
<li><a href="products/events/graduation/invites/gradinvites.html">Invitations</a></li>
<li><a href="products/events/graduation/gradcollage.html">Photo Collages</a></li>
<li>Photo Products</li>
<li><a href="products/events/graduation/gradlabels.html">Return Address Labels</a></li>
<li><a href="products/events/graduation/gradthankyous.html">Thank You Cards</a></li>
<li><a href="products/events/graduation/gradyardsign.html">Yard Signs </a></li>
</ul>
</li>
<li><a href="products/events/greetingcards.html">Greeting Cards</a></li>
<li><a href="products/events/invitations.html">Invitations</a></li>
<li><a href="products/events/programs.html">Programs</a></li>
<li><a href="products/events/tickets.html">Tickets</a></li>
</ul>
</li>
<li><a href="productsandservices.html#wedding">Wedding Products</a>
<ul>
<li><a href="productsandservices.html#wedding">Wedding Invitations</a>
<ul>
<li><a href="products/wedding/wedinvitations-custom.html">Custom Designed</a></li>
<li><a href="products/wedding/wedinvitations.html">Traditional</a></li>
</ul>
</li>
<li><a href="productsandservices.html#otherwedding">Other Wedding Products</a>
<ul>
<li><a href="products/wedding/wedcollages.html">Collages</a></li>
<li><a href="products/wedding/wedprograms.html">Programs</a></li>
<li><a href="products/wedding/wedsavethedate.html">Save the Date Cards</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="products/customphoto/keychains.html">Custom Photo Products</a>
<ul>
<li><a href="products/customphoto/coasters.html">Coasters</a></li>
<li><a href="products/customphoto/keychains.html">Keychains</a></li>
<li><a href="products/customphoto/mousepads.html">Mouse Pads</a></li>
<li><a href="products/customphoto/mugs.html"> Mugs</a></li>
<li><a href="products/customphoto/cushions.html">Stadium Cushions</a></li>
</ul>
</li>
<li><a href="productsandservices.html#design">Design Services</a>
<ul>
<li><a href="services/graphicdesign.html">Custom Graphic Design</a></li>
<li><a href="services/email.html">Email Newsletters</a></li>
</ul>
</li>
<li><a href="productsandservices.html#finishing">Bindery & Finishing</a>
<ul>
<li><a href="services/binderbuild.html">Binder Building</a></li>
<li><a href="services/coiling.html">Coil & GBC Binding</a></li>
<li><a href="services/laminating-mounting.html#mount">Foamboard Mounting</a></li>
<li><a href="services/folding.html">Folding</a></li>
<li><a href="services/drilling.html">Hole Punching/Drilling</a></li>
<li><a href="services/laminating-mounting.html#laminating">Laminating</a></li>
<li><a href="services/perfectbind.html">Perfect Binding</a></li>
<li><a href="services/saddling.html">Saddle-Stitching</a></li>
<li><a href="services/tabs.html">Tabs</a></li>
</ul>
</li>
<li><a href="productsandservices.html#otherservices">Other Services</a>
<ul>
<li><a href="services/cd-dvdcopying.html">CD/DVD Duplication</a></li>
<li><a href="services/faxing.html">Faxing</a></li>
<li><a href="services/scanning.html">Scan to File</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="/pages/portfolio.html">Portfolio</a></li>
<li><a href="/pages/order.html">Place Online Order</a></li>
<li><a href="/pages/newsletter.html">Newsletter Sign Up</a></li>
<li><a href="copier-sales-service.html">Copier Sales/Service</a></li>
<li><a href="franchising.html">Franchising</a></li>
<li><a href="/pages/help.html">Help & FAQ's</a>
<ul>
<li><a href="privacy.html">Privacy Policy</a></li>
</ul>
</li>
<li><a href="/pages/contact.html">Contact Us</a></li>
<li><a href="/pages/sitemap.html">Sitemap</a></li>
</ul>
</div>
<div id="navbottom"> </div>
</div>
</body><!-- #EndLibraryItem --><!-- end #sidebar1 -->
</div>
<div id="mainContent">
<h1>Contact Us</h1>
<p>You may contact World Digital Imaging via email, phone, fax or mail. Our office hours are as follows:</p>
<div style="text-indent:40px; line-height:1.25em; font-weight:bold;">
<p>Monday - Thursday: 7:30am - 5:00pm</p>
<p>Friday: 7:30am - 4:00pm</p>
<p>Saturday: 8:00am - 12:00pm</p>
<p>Sunday: CLOSED</p>
<br/>
</div>
<h2>Email:</h2>
<ul class="gen">
<li>General Inquiry - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Place an Order - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Copier Sales/Service - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Craig (President) - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Angie (Adminstration) - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Ashley (Administration) - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Natalie (Graphic Designer) - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Danielle (Graphic Designer) - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Kathy (Production) - <a href="mailto:[email protected]">[email protected]</a></li>
<li>Tim (Copier Repairs & Maintenance) - <a href="mailto:[email protected]">[email protected]</a></li>
</ul>
<p> </p>
<h2>Phone:</h2>
<p>937-431-1982</p>
<br/>
<h2>Fax:</h2>
<p>937-431-1985</p>
<br/>
<h2>Mail:</h2>
<div style="line-height:1.5em;">
<p>World Digital Imaging<br/>
1138 Richfield Center<br/>
Beavercreek, OH 45430</p>
</div>
<div id="map" class="ctr">
<iframe style="width: 550px; height: 425px" src="http://www.mapquest.com/embed#b/maps/m:map:12:39.72919:-84.078493::::::1:1:::::::::/l:Worl d+Digital+Imaging:1138+Richfield+Ctr:Beavercreek:OH:45430:US:39.724894:-84.083313:address: :1:::26792578/e" frameborder="0" scrolling="No" marginheight="0" marginwidth="0"></iframe>
</div>
<!-- end #mainContent -->
</div>
<!-- end #container -->
</div>
<div id="footer"><!-- #BeginLibraryItem "/Library/footer-menu.lbi" --><div id="footer-menu">
<ul style="list-style-type: none;">
<li><a href="http://www.wdi-whq.com">HOME</a></li>
<li><a href="#top">BACK TO TOP</a></li>
<li><a href="privacy.html">PRIVACY POLICY</a></li>
<li><a href="http://www.wdi-whq.com/pages/help.html">HELP/SUPPORT</a></li>
<li><a href="http://www.wdi-whq.com/pages/contact.html">CONTACT US</a></li>
<li><a href="http://www.wdi-whq.com/pages/sitemap.html">SITEMAP</a></li>
</ul>
<p class="clrflt"> </p>
<br/>
<p class="web-disclaimer">Website content and design copyright World Digital Imaging, 2009-2010.<br/>
No part of this website may be reproduced in any form without the express written consent of World Digital Imaging.<br/>
For questions or comments about the website, please contact the <a href="emailto:[email protected]">Webmistress</a>. </p>
<br/>
<br/>
</div>
<!-- #EndLibraryItem --><!-- end #footer -->
</div>
<br/>
</body>
</html>I've never used Library Items. IMO Server-Side Includes are better for this.
Can you do a Find & Replace in the Source Code (Ctrl+F) for this line?
<!-- #BeginLibraryItem "/Library/menu-multilevel.lbi" --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
And replace it with this:
<!-- #BeginLibraryItem "/Library/menu-multilevel.lbi"
-->
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
can i use library items in the same way as i can cfinclude or
an html insert
i realise these are server side actions but i want to know if
it is possible to have links in the library which can be updated on
the page4s
what are the possibilities and drawbacks of librariy items?
regards Mark
p.s if someine could answer my js problem i would be most
appreciativeLibrary items are strictly design-time tools.
> to have links in the library which can be updated on the
page4s
Not sure what you are talking about here - links in Library
items are
definitely managed by DW.
> what are the possibilities and drawbacks of librariy
items?
Not many possibilities, and the single largest drawback is
the Design-time
scope.
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
==================
"quiero mas" <[email protected]> wrote in message
news:e62jj9$4ee$[email protected]..
> can i use library items in the same way as i can
cfinclude or an html
> insert
> i realise these are server side actions but i want to
know if it is
> possible
> to have links in the library which can be updated on the
page4s
>
> what are the possibilities and drawbacks of librariy
items?
> regards Mark
>
> p.s if someine could answer my js problem i would be
most appreciative
> -
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
> -
Replace Library item sidewide in Dw
Hi,
Is there a way to change Library item sidewide in Dw?
Issue: I want footer.lbi to be changed to footer-fr.lbi in a particular folder of my site.
The change links sidewide command doesn’t not work for this particular case as well as find/change command who give me the following error message: Making this change would require changing code that is locked by a template or a translator. The change will be discarded.
I was thinking of SSI but when I talk to our servers maintenance guys, they told me that it wasn’t compatible.
Anyone has an idea?
Thanks!
Martin<I was thinking of SSI but when I talk to our servers maintenance guys, they told me that it wasn’t compatible.>
.lbi is proprietary to DW so they can't be used as SSIs. I never use Library Items.
If you have decent web hosting, I'm fairly certain you CAN use SSIs provided you name your documents with a proper extension type (.shtml, .shtm, .php, .asp, .cf...). which tells your server there are includes on the page that need to be parsed.
SSIs described:
http://forums.adobe.com/message/2112460#2112460
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
Page persistence indicator and Library item
What is the best way to create page persistence indicators on
a
navigational array using div elements, in which the nav array
is stored
as a Library item and stretches across multiple Templates?
I am trying to follow the instructions as in this article:
http://www.communitymx.com/content/article.cfm?cid=F1394
However, this method uses template parameters wherein the
navigational
array is stored in the .DWT template file, and not in a
Library item
which stretches across Templates as in my situation. I am
looking for a
solution which will allow the Library to dynamically create
the
persistence indicators.
Oh, and also the nav array is made up of graphical elements
(not
text-based CSS) so the persistence needs to swap out
individual
graphical elements for each div.
Thanks, -CCE Michael Brandt wrote:
>
>> Here's how you handle that - call the host and ask
them to server
>> parse ALL extensions on the site. Most will do this
(many are set
>> this way by default).
>
> Yep, I've done that in the past. But it may contribute
in part to what
> CC is referring to as lost time. Just trying to be
Solomonic.
>
Yes, this is exactly what I'm trying to say.
When I do a five page static site for a client who I know is
probably
going to make changes to universal elements once every year
(if that) it
really doesn't matter if I choose Library or SSI. Often I
will choose
Library items in this case, simply because they're easy to do
and I'm
used to doing things this way. And when I do have updates to
make?
Dreamweaver makes it a snap to update those Library items,
then compare
the changed files on the server. It can all be done in under
a minute.
SSI? Could have used that, too, but to preview the site I
either have to
set up a testing server environment or make the include live
before
showing the client. And I can't drag and drop the file from
the desktop
onto my browser, have to go through Dreamweaver. These may
not seem like
big deals (and may seem inefficient to some) but I manage
between 15-20
sites all through Dreamweaver, some requiring extensive
updates, many
requiring only a few tweaks quarterly, and I can tell you
that on the
sites I've built Libraries around, they take me maybe a few
additional
minutes longer to update than with the sites I've built with
SSI. It's
all about which sites make the most sense to build SSI or
Libraries around.
Of course the argument has been made: why not plan better in
advance to
use SSI in the first place when it may save you time in the
future? Good
point. However, again, the sites I choose to use Library
items versus
SSI were usually smaller sites, with no dynamic pages, etc.
And for
whatever reason I chose not to rename all my extensions to
SHTML ...
didn't want to jump through hoops setting up a testing server
environment ... or upload everything to FTP everytime I
changed the
include file just to preview the one pixel move I made on a
photo ...
and the client may see the include file live on his server
before I am
ready to demo the whole site, which is on version 4 at this
point ...
and now I have to change the path of the include on the
Template to a
new one so he doesn't see parts of version 3 ... and I don't
want to go
back to my client and ask for additional hours to call the
client's
dumb-*** hosting company to set up SSI that should already be
setup ...
don't have time to wait three hours for the webhosting
company to get
back to me with a "we're working on it" response ... and
we're already
overbudget due to that fancy CSS menu I already spent way too
much time
on and isn't looking quite right in IE6 still ... and I've
got to get
going on four other website updates before 6 PM ... it's now
5 PM ...
and I'm probably going to be up all night again.
Given all of that, I can't see why there appear to be so many
Library
hating comments on this thread. Reading through, it would
appear that
Library items are utterly useless -- which is just not the
case. I'm
surprised at the comments, actually, because the power in
Dreamweaver
lies in its ability to make the business of building websites
easier for
users with a wide range of skill levels, for almost any kind
of job.
Some of its tools (like Libraries) have overlap with SSI
perhaps to give
the user as many options as possible depending on
circumstance. Whether
one chooses to use Library items or SSI, the results are
often the same
in my experience, and I feel Libraries have even saved me
time in
situations where includes were simply not the wisest choice.
Who knows,
maybe it's because I've grown so used to them over the years
is why I
defend them so. But any rate, Libraries at least serve some
of us well.
-CC -
Dreamweaver Library Item Etc.
I am starting work on a new website which will have an
extension navigation menu - up to 40 items and with many pages.
Each page on the site will contain this navigation menu. I
want to know if anyone has a work around for the following:
I want to have the ability to edit the navigation menu in the
future and have it populate on every page.
As you may know, the content of the navigation menu differs
slightly on every page (class='current' etc).
Does anyone have a work around to use a Dreamwaver library
item (or other tool) with variance per page?
Thanks,
Adi> Does anyone have a work around to use a Dreamwaver
library item (or other
> tool) with variance per page?
Don't use Library items. Use Server-side includes. That way,
you can just
change the menu file, upload it, and the change appears on
every page
without any further uploads. With Library items, you have to
upload every
page again after each change.
> As you may know, the content of the navigation menu
differs slightly on
> every
> page (class='current' etc).
It's simple. Give each menu element a unique ID, and on each
page, just add
a tiny embedded stylesheet that selects the appropriate menu
'button', e.g.,
#button3 { ... }
<a id="button3">whatever</a>
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
==================
"AR_XASWQ" <[email protected]> wrote in
message
news:fs93kk$fgk$[email protected]..
>I am starting work on a new website which will have an
extension navigation
> menu - up to 40 items and with many pages.
>
> Each page on the site will contain this navigation menu.
I want to know
> if
> anyone has a work around for the following:
>
> I want to have the ability to edit the navigation menu
in the future and
> have
> it populate on every page.
>
> As you may know, the content of the navigation menu
differs slightly on
> every
> page (class='current' etc).
>
> Does anyone have a work around to use a Dreamwaver
library item (or other
> tool) with variance per page?
>
> Thanks,
>
> Adi
> -
DW removes spaces surrounding updated library items
I've filed a bug with Adobe on this issue, but I'm wondering
if anyone else has received a fix for what I consider a
showstopping bug. In a nutshell, whenever I update a library item,
DW removes all spaces surrounding the updated library item, and
will even remove spaces surrounding unrelated library items during
the same operation.
For example, let's say I have a simple library item that
contains only the character "^". I insert that into a page to
render like this: "| ^ |", using normal spaces in the page code to
separate the three characters. If I then edit the library item to
use the character "-" instead, all updated pages will lose the
surrounding spaces: "|-|".
I've developed hundreds of library items over the years, and
can reproduce this over the last three versions of DW (8, MX 2004,
MX), on multiple computers using new code or existing sites. If I
edit a single library item, it corrupts hundreds of pages in a
large site, and I have to use special searches to find and fix the
error. I can't believe that noone else is affected by this problem,
or isn't using library items to the extent that I do.
I'd really like to see library item functionality repaired,
and this is my last appeal before finding a replacement for DW, Are
any DW developers monitoring this list?> bug is just as capable of affecting SSI
I don't think so. At least, I have never seen it happen. Have
you?
> Library items are particularly aimed at professionals
managing large
> sites.
I don't think so here, either. Why would one EVER choose a
Library item
over SSI? On a large site, you would upload hundreds if not
thousands of
files for each change with the former.
> It is an opportunity to
> create reusable code that can be managed and edited in
one central
> location, so
> that changes to a single file can be replicated
throughout the entire code
> base.
Precisely what SSI does, only better.
> Yes, it may be more desirable to use a server side
technology to control
> these bits through the use of variables and includes,
but I also build and
> manage high performance web servers, and no dynamic
language can even come
> close to the speed of delivering static files,
especially if you want to
> withstand a slashdotting or other unusual burst of
activity.
This is true - since Library items are design-time tools, you
take the
bandwidth hit on the upload side of things rather than on the
fetch side of
things.
> I'm hoping that someone at Adobe is monitoring this list
They do not. If you need to communicate with them, you must
contact them
directly. But you have been told that Adobe is aware of the
problem at
least twice - is that not enough?
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
==================
"jorey" <[email protected]> wrote in message
news:[email protected]...
> The examples I used are overly simplified to more
clearly demonstrate the
> problem. Using a server-side technology is not relevant
to this issue.
> This
> bug is just as capable of affecting SSI, PHP, ASP, or
any other code
> edited and
> managed with Dreamweaver.
>
> Library items are particularly aimed at professionals
managing large
> sites.
> Who else would even be interested in such a feature? It
is an opportunity
> to
> create reusable code that can be managed and edited in
one central
> location, so
> that changes to a single file can be replicated
throughout the entire code
> base. To suggest that it is necessary to create slightly
different
> versions of
> code snippets to suit the individual needs of each
generated page utterly
> defeats the purpose of library items.
>
> As for the uses of library items, sure, I'll use it to
maintain large
> blocks
> of code, but it's also useful for little things that
change on a regular
> basis,
> such as names of people in specific roles, addresses,
phone numbers, email
> addresses, URLs, dates and other things that might
appear hundreds of
> times
> throughout a site in a variety of contexts. This bug has
serious
> repercussions,
> because it is not limited to the item being updated. You
could update a
> large
> block of code and have unpredictable changes occur
elsewhere. This is
> unacceptable, and may not be limited to library items,
but may also affect
> templates or any other site management function that
relies on the same
> routines.
>
> Yes, it may be more desirable to use a server side
technology to control
> these bits through the use of variables and includes,
but I also build and
> manage high performance web servers, and no dynamic
language can even come
> close to the speed of delivering static files,
especially if you want to
> withstand a slashdotting or other unusual burst of
activity.
>
> But as I mentioned, the type of code or use of the
library item is
> irrelevant.
> Dreamweaver as a programming editor has a serious bug.
It's broken, and
> needs
> to be fixed. I'm hoping that someone at Adobe is
monitoring this list and
> will
> understand that this is a problem that affects advanced
users and whole
> teams
> who have made extensive and productive use of this
feature before it was
> broken.
> -
Shortcut for inserting a library item?
Dear Dreamweaver people,
i am busy inserting a library item (some html that creates a
form) in about 400 pages. Automating this task is probably to
complicated for me, but, hitting this insert button is tyresome as
well. Is there any shortcut possible for this button? I cannot find
a possibility in the editing shortcuts panel.
I am using dreamweaver CS2
Thanks for any helpI wouldn't recommend this. You would be MUCH better off using
server-side
includes instead of a Library item (I can't find a compelling
reason to ever
use Library items, honestly).
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
==================
"jojo1971" <[email protected]> wrote in
message
news:glq81q$cou$[email protected]..
> Dear Dreamweaver people,
> i am busy inserting a library item (some html that
creates a form) in
> about
> 400 pages. Automating this task is probably to
complicated for me, but,
> hitting
> this insert button is tyresome as well. Is there any
shortcut possible for
> this
> button? I cannot find a possibility in the editing
shortcuts panel.
> I am using dreamweaver CS2
>
> Thanks for any help
> -
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.
>
Maybe you are looking for
-
How do I turn shuffle off?
Hi, I have the iPod Nano 6th generation and for the life of me I can't figure out how to turn the shuffle off. It is really annoying because I listen to a lot of audio spoken word albums and so really can't have it skipping around. Please help. I hav
-
PCI-6014: unable to change Polarity/Range in MAX3.1
Recently we have needed to change our data input range from +/- 10V to +/- 500mV. The manual says that this occurs by changing the gain levels, however MAX does not display any data ranges other than +/- 10V. I have tried removing the device, uninsta
-
When synching my iPad2 I am trying to stay within the 32GB of memory but this is filling up fast. I have a lot of music and pictures... I was wondering about the 3GB of "Other" that shows up as yellow on the usage bar. What is in the "Other" catego
-
Hi Gurus, I am using 0FIGL_C10 and 0FI_GL_10 extractor for my P&L report. In New gl the extractor pulls glaccounts, profit center and cost centers into the cube. Now when i create a P&L report on figl cube and drill down by cost center and compare th
-
I cannot print from a web page or now from an email. I can print all Office documents however. I have done every Microsoft fix, every fix I can find on the internet and none of them correct this problem. Bottom line is all websites that say if the