Spry and Library Items
I have a couple quick questions regarding Spry items:
1. Can you have more than one of the same Spry items in the same site (like 2 different tabbed panels which can be styled differently in CSS)?
2. Can a Spry item be saved as a library item. If so, how?
3. Is it possible to "create a widget" from a spry item?
Thank you for your time.
chris
Hola Cboyte15
I will try this
Make your first Spry item
DW will creat the Spry/Assets folder
Fix it how you want it
Make a New Folder in your site
Name it" _assets2" or whatever you want
Now, go to
Site/Manage Sites
Click "Edit"
Click in the arrow from "Advance Settings"
Click in "Spry"
You will "see" a window for the location of the Assets folder
Find your new folder
Done
Hope it works...it works for me
Saludos
Similar Messages
-
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 -
Powershell script to count number of list and library items in site collection
We are identifying large lists in our 2010 SP environment and I'm attempting to write code to output the total number of list items in a site collection. I'm using the code below but it only displays column data for title and url.
What do I need to add so it can count the number of items in each sharepoint list and library?
Get-SPSite -WebApplication http://sharepoint -Limit All |
Select -ExpandProperty AllWebs |
Select -ExpandProperty Lists |
Select ParentWebUrl, Title
I'm referencing
http://sharepointpromag.com/sharepoint/windows-powershell-scripts-sharepoint-info-files-pagesweb-partsPlease find belwo script, it will iterarte through all the folder/Subfoder to get the item counts from all list and library, you can modify this script to run this at site collection scope:
Note: save the script in .ps1 file and execute the script as described below to get log file, it will save the log file out.txt in seleted directory:
e.g.PS D:\PowershellScripts> .\ListItemCount.ps1 > out.txt
$SPWebApp = Get-SPWebApplication "http://weburl.com/"
foreach ($SPSite in $SPWebApp.Sites)
if ($SPSite -ne $null)
foreach ($SPWeb in $SPSite.AllWebs)
foreach ($list in $SPWeb.Lists)
$ListURL = $SPWeb.url + "/" + $list.RootFolder.Url
Write-Output $ListURL
[Microsoft.SharePoint.SPQuery]$query = New-Object Microsoft.SharePoint.SPQuery
#$query.Folder = fldr;
#Recursive Scope....
$query.ViewAttributes = "Scope='Recursive'"
$allitems = $list.GetItems($query);
$filecount = $allitems.Count;
Write-Output " No of item: " $filecount
if ($SPWeb -ne $null)
$SPWeb.Dispose()
if ($SPSite -ne $null)
$SPSite.Dispose()
You can update the code to get any specific list type item count, using if($list.BaseType -eq "DocumentLibrary") condition:
if($list.BaseType -eq "DocumentLibrary")
$ListURL = $SPWeb.url + "/" + $list.RootFolder.Url
Write-Output $ListURL
[Microsoft.SharePoint.SPQuery]$query = New-Object Microsoft.SharePoint.SPQuery
#$query.Folder = fldr;
#Recursive Scope....
$query.ViewAttributes = "Scope='Recursive'"
$allitems = $list.GetItems($query);
$filecount = $allitems.Count;
Write-Output " No of item: " $filecount
if ($SPWeb -ne $null)
$SPWeb.Dispose()
If my contribution helps you, please click Mark As Answer on that post and Vote as Helpful
Thanks, ShankarSingh -
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 -
I want to apply a behavior - open browser window - to text in a Library Item. The options in the Behavior Panel are grayed out. Does that mean behaviors cannot be used in Library Items or am I doing something wrong?
Thanks for your help.Hi, Jens,
Apply the behavior to your text. Save the the page where you have created the text and behavior. You will need to be using tagged text...<h1> or <p>, etc. for the program to have a tag in which to insert the behavior script. Saving the file inserts the associated script into the head of that document.
Select the text with the behavior and press the plus sign icon in the bottom of the Assets | Library Panel to create the Library Item.
When you insert the behavior-enhanced text on a new page as an instance of the Library Item, the behavior should ride along with it, also inserting its associated script into the head of the new document.
Z -
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?
-
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 -
Changing behaviors on library items
I currently have a header as a library item. The buttons all
have pop-up menus and I am trying to edit them. I used the help
through Dreamweaver and it said to open a page that contains the
library item and detach it - make the changes then re-save the
library sections. I tried that and when I click on the "Shoe Pop-up
Menu" on the behavior tab I get the following error message:
While executing inspectBehavior in Show Pop-up Menu.htm, the
followinf JavaScript error(s) occurred:
At line 492 of file "C:\Program Files\Macromedia\Dreamweaver
8\Configuration\Behaviors\Actions\Show Pop-up Menu.js"; TypeError :
T.update is not a function
Can anyone help with this? What does it mean?A well-formed library item cannot have a behavior *in* it. It
can reference
a behavior with a call to it, e.g.,
<a onClick="MM_swapImage....
but it cannot actually CONTAIN a behavior. Why? Because that
would mean
that it would have to have <html>, <head>, and
<body> tags and Library items
just cannot contain those. Why? Because since a Library item
is inserted
into another page, if it contained those tags, they would
then be duplicated
on the other page.
So - your Library item is not well formed, i.e., it's broken.
> buttons all have pop-up menus
> and I am trying to edit them.
This is the worst possible situation. You have a broken
Library item, and it
contains an even more broken menu system. Is it too late to
reconsider
here?
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
==================
"TiffanyAdTrends" <[email protected]> wrote
in message
news:ed4inu$am9$[email protected]..
>I currently have a header as a library item. The buttons
all have pop-up
>menus
> and I am trying to edit them. I used the help through
Dreamweaver and it
> said
> to open a page that contains the library item and detach
it - make the
> changes
> then re-save the library sections. I tried that and when
I click on the
> "Shoe
> Pop-up Menu" on the behavior tab I get the following
error message:
>
> While executing inspectBehavior in Show Pop-up Menu.htm,
the followinf
> JavaScript error(s) occurred:
>
> At line 492 of file "C:\Program
Files\Macromedia\Dreamweaver
> 8\Configuration\Behaviors\Actions\Show Pop-up Menu.js";
TypeError :
> T.update is
> not a function
>
> Can anyone help with this? What does it mean?
> -
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
> -
Dreamweaver quits when updating library item
Sometimes it works fine for a week or so but suddenly it
starts crashing Dreamweaver (CS3) every time I'm updating a library
item throughout a local site. Any ideas why and how to avoid this?
Thanks,
Hanna> I really need to understand why library items crash my
Dreamweaver...
This may not be possible for you right now. At least SSI
would get you
going. But so be it.
Library item updates do not crash my DW. Sorry.
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
==================
"HannaB" <[email protected]> wrote in
message
news:g4tkc4$nc1$[email protected]..
> Because I'm a slow learner and Library items work well
for what I do.
> Besides,
> server-side includes are confusing as I can't see them
on the local site,
> only
> when uploaded to the remote server (but please, don't
get into that at
> this
> point. I really need to understand why library items
crash my
> Dreamweaver...)
> -
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!
> -
Spry widget menu bar as a library item - problems
I created a spry vertical menu bar and made it a library item. The original works great, however when I insert the library item into its own div tag on another page, the submenus will not pop out, either in DW or the browser view. The div tag is the correct size and I made the z index high enough. Here is the code of the page that works properly:
<!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" />
<title>DM Consulting Dry Dock Training</title>
<link href="css styles/drydock2.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-image: url(images/vertborderblue2.jpg);
background-repeat: repeat-x;
-->
</style>
</head>
<body>
<div id="container">
<div id="header"><img src="images/header_title_white.png" width="645" height="116" alt="header" /></div>
<div id="logo"><img src="images/drydock_logo_blktxt.png" width="154" height="119" alt="logo" /></div>
<div id="mainContent">
<div id="content">
<p><span class="bolder1">D</span><span class="bolder1">M Consulting </span><span class="lineheight">provides Dry Dock Training, Dry Dock Conferences,<br />
Dry Dock Software and Dry Dock Consulting for:</span></p>
<ul>
<li class="lineheight"> Dock Masters</li>
<li class="lineheight">Docking Officers</li>
<li class="lineheight">Dry Dock Crews</li>
<li class="lineheight">Engineers</li>
<li class="lineheight">Naval Architects </li>
<li class="lineheight"> Port Engineers</li>
<li class="lineheight">Program/Project Managers</li>
<li class="lineheight">Marine Surveyors</li>
<li class="lineheight">Owners' Representatives</li>
<li class="lineheight">On-site Representatives</li>
<li class="lineheight">Consultants</li>
<li class="lineheight">Others Involved or Interested in
the <br />
Dry Docking of Ships and Vessels</li>
</ul>
<div id="testimonials">"The course was excellent, straight forward and comprehensive. Instruction was great, expected <br />
"death-by-power point" but was pleasantly surprised.
I am better acquainted w/dry dock basics after the
course and can trust the accuracy of the training
based on the extensive experience of the instructors. Thank you!
Very informative, very thorough."
- David, Australia<br />
</div>
<div id="movie">
<object width="560" height="340">
<param name="movie" value="http://www.youtube.com/v/qLGUZEkbAwA?fs=1&hl=en_US&rel=0" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed src="http://www.youtube.com/v/qLGUZEkbAwA?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
</object>
</div>
<div id="moreTestimonials">»»» click here for more testimonials «««</div>
<div id="footer"><!-- #BeginLibraryItem "/Library/copyright.lbi" -->© COPYRIGHT 2010 DM CONSULTING<!-- #EndLibraryItem --></div>
</div>
<div id="navbar">
<!-- #BeginLibraryItem "/Library/nav.lbi" -->
<ul id="MenuBar1" class="MenuBarVertical">
<li><a href="#index.html" title="DM Consulting home page">HOME</a></li>
<li><a href="#" class="MenuBarItemSubmenu">TRAINING</a>
<ul>
<li><a href="#outline.html" title="Outline of our Training Course">General Information & Outline</a></li>
<li><a href="#train_sched.html" title="Locations & dates of our Training Courses">Training Course Schedule</a></li>
<li><a href="#drawings.html" title="Dry dock course drawings">Course Drawings</a></li>
<li><a href="#testimonials.html" title="Read what our clients have to say">Testimonials</a></li>
</ul>
</li>
<li><a href="#conference.html" title="Dry Dock Conference information">CONFERENCE</a></li>
<li><a href="#software.html" title="Shop our software">DOCKMASTER SOFTWARE</a></li>
<li><a href="#consulting.html" title="Dry Dock Consulting">CONSULTING</a></li>
<li><a href="#clients.html" title="List of current and past clients">CLIENTS</a></li>
<li><a href="#about.html" title="Learn about our company">ABOUT</a></li>
<li><a href="#contact.html" title="Contact us">CONTACT US</a></li>
</ul>
<!-- #EndLibraryItem --></div>
</div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
Here is the code for the page that DOESN'T work:
<!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" />
<title>Training Course Schedule</title>
<link href="../css styles/drydock2.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-image: url(images/vertborderblue2.jpg);
background-repeat: repeat-x;
-->
</style>
</head>
<body>
<div id="container">
<div id="header"><img src="../images/header_title_white.png" width="645" height="116" alt="header" /></div>
<div id="logo"><img src="../images/drydock_logo_blktxt.png" width="154" height="119" alt="logo" /></div>
<div id="mainContent">
<div id="content">
<h2><span class="bolder1">Training Course Schedule</span><span class="bolder1"></span></h2>
<p><br />
Class sizes are limited so please register early. Early registration and payment provides the best value.<br />
<br />
</p>
<p class="underline"><strong>4-7 October 2010 • Honolulu, HI, USA </strong></p>
<div id="schedulephoto"><img src="../images/conference-rm_train_s.jpg" width="250" height="123" alt="image" /></div>
<p>The training will be held in Pearl Harbor, Hawaii, USA. <br />
<a href="Registration_Hawaii.html">Registration form</a><br />
<br />
</p>
<p class="underline"><strong>15-18 November 2010 • Virginia Beach VA, USA</strong></p>
<p>The training will be held in Virginia Beach, Virginia, USA. <br />
<a href="Registration_Virginia.html">Registration form</a><br />
<br />
</p>
<p class="underline"><strong>11-14 May 2011 • London, United Kingdom</strong></p>
The training is held in conjunction with the Royal Institution of Naval Architects (RINA). Registration and payment will be made directly to RINA. <br />
Visit RINA's <a href="http://www.RINA.org.uk" target="_blank">website</a> and go to "Events" or call +44 (0) 20 7201 2401.<br />
<br />
</p>
<p><strong>Your Location</strong></p>
<p>Training tailored to your organization's needs, including training at your facilities, <br />
is also available. </p>
</div>
<div id="nav3"><!-- #BeginLibraryItem "/Library/nav.lbi" -->
<ul id="MenuBar1" class="MenuBarVertical">
<li><a href="#index.html" title="DM Consulting home page">HOME</a></li>
<li><a href="#" class="MenuBarItemSubmenu">TRAINING</a>
<ul>
<li><a href="#outline.html" title="Outline of our Training Course">General Information & Outline</a></li>
<li><a href="#train_sched.html" title="Locations & dates of our Training Courses">Training Course Schedule</a></li>
<li><a href="#drawings.html" title="Dry dock course drawings">Course Drawings</a></li>
<li><a href="#testimonials.html" title="Read what our clients have to say">Testimonials</a></li>
</ul>
</li>
<li><a href="#conference.html" title="Dry Dock Conference information">CONFERENCE</a></li>
<li><a href="#software.html" title="Shop our software">DOCKMASTER SOFTWARE</a></li>
<li><a href="#consulting.html" title="Dry Dock Consulting">CONSULTING</a></li>
<li><a href="#clients.html" title="List of current and past clients">CLIENTS</a></li>
<li><a href="#about.html" title="Learn about our company">ABOUT</a></li>
<li><a href="#contact.html" title="Contact us">CONTACT US</a></li>
</ul>
<!-- #EndLibraryItem --></div>
</div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
I understand about having the script and link element that connect my page to the dependent files in the SpryAssets folder in the header and the JavaScript function cal at the bottom on each page. I don't know what else to do - HELP!Welcome to the Dreamweaver world!
Well, having your index.html page at the top/root level is important, as that is the default page by which people will enter your site.
Having other pages in folders is fine...I do it all the time in order to keep departments or categories of information sorted.
One characteristic of having pages in folders is that the hierarchy of files in folders (perforce) puts them at different depths in the site.
This is not inherently a bad thing! Just one to remain aware of. When you look at your site files in the Files Panel, you can see a graphical representation of those different levels.
But the nature of a library item is that it is identical in all its instances, which is what makes it useful...change it in the library, and it changes site-wide. The down-side of that identity is that when your files are at different depths in the hierarchy, their links back to, say, home (or any other same file) will change depending on the depth. You can see this if you make a link on a page, then drag the page (in the Files Panel) to a different depth...say, into a folder when it started at root level, or vice versa. Check the link, and you will see that it automatically adapted to the new path.
Library items do not do that; they do not change, so some of your links will be 'wrong' when you refer to pages that have different paths than the ones originally set up in the library item... because of the change in hierarchy.
All this is, of course, reliant on your creation of the site in the first place, as defining the root folder's location on your computer gives Dreamweaver a starting point for handling (juggling?) all the location-information for your site's files.
Beth -
Can Spry Accordian be a Library Item?
Can you make a Spry Accordain a Library Item? I'm having
difficulties making it work.
ThanksDW will be a very punishing experience if you do not take the
time to get a
foundation in HTML and CSS, honestly.
To get started go here -
http://www.w3schools.com
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
==================
"squirmywormy6" <[email protected]> wrote in
message
news:g65ge9$2hh$[email protected]..
> ok...i'll look into it. Did a quick look and it looks
like a lot of
> programming stuff that i know nothing about...eeek -
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. -
Bug:How can Home sharing be turned off and all items in my library cleared without my intervention? This is the SECOND time this happens since end of March 2013. A permanent solution will be appreciated
See this post.
Assuming AVG is involved there is a new patch which may resolve the issue. Update AVg before attempting to recover the library.
tt2
Maybe you are looking for
-
hi, I have just install full portal application server 10g release 2 and would like to know if anybody have come across a way to take out the SSO full login page like the example below currently this is the login for the SSO https://login.company.com
-
Tabular Form: Conditional column based on another column in table/form?
Hi! I have 4 columns in table A: number (the question number) question (the question to be asked) type (TEXT, LOV are the 2 valid values) answer (the answer with text or a selection from the lov table below) I have 2 columns in table B: number (the q
-
How do I stop calendar from emailing alerts?
For every calendar event I receive an email & an alert. How do I keep the alert, but stop the email? I have a hotmail email address.
-
Hi everyone, I'm new here. In fact this is my first ever post in the SDN coummunity. I'm studying BIS and majoring in knowledge management. I'm also very very interested in enterprise 2.0 I started learning about SAP 4 months ago and since then I've
-
First of all, sorry for my english, i'm spanish . My connection to internet was like this (now i've changed) iMac ->(wifi)-> router1 ->(ethernet)-> router2 -> Internet. I always used the OpenDNS (208.67.220.220/208.67.222.222) and all my applications