This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > August 2004 > Library Items - insert and update problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Library Items - insert and update problems
|
|
| calicocatsmeow 2004-08-06, 7:15 pm |
| Hi - I am new to Dreamweaver and to posting so please be patient if I am asking
for help with what seems obvious. I am having trouble with inserting and
updating Library Items. I have tried to look up information but did not find
anything that seemed to help. I have Macromedia Studio MX 2004 (version 7.0.1)
on Windows XP Pro.
I create web pages from a Template that has multiple editable regions - title,
mainnav, leftnav, body. The 'mainnav' and 'leftnav' regions are within <table>
tags and the 'body' region is with <td> tags. In the Template, the 'mainnav'
and 'leftnav' regions contain <tr></tr> tags but the 'body' region has no html
markup. I have Library Items that contain DHTML/CSS rendered navigation bars.
I need to insert a Library item into the 'mainnav' editable area of a web page
and be able to apply updates to the Library Item to the web page, but I run
into problems with both issues.
First, the issue with inserting:
Working within the Assets Library Item category, I make the 'mainnav' editable
region active and place my cursor within the region (actually, I have found I
need to highlight something within the region...). Next, I insert the Library
Item, either by drop and drag or by context sensitive Insert. However, the
item is not inserted into 'mainnav' - it is inserted into the 'body' region if
that are does not have content and into the 'leftnav' region if 'body' does
have content (regardless of whether 'leftnav' has content). I then have to
drag the item to 'mainnav'. Shouldn't the Library Item automatically insert
into the 'mainnav' region?
Second, the issue with updating:
When I edit the Library Item within the Assets Library Item category and apply
the update to the web pages, 2 things seem to happen. The 'mainnav' region
along with the surrounding <table> tags is duplicated - only the duplicate does
not contain the <tr> tags. The duplicate region is also named 'mainnav' (which
causes an error) and comes before the original 'mainnav' region. The Library
Item is updated - but is removed from the editable 'mainnav' region and placed
between the two duplicate regions - in the non-editable Template area. In
order to update the Library Items within the web pages, I must individually
re-insert the item into each web page - which defeats the purpose of the
Library Item. Why in the world is this happening?
I have tried Site > Recreate Cache, Refreshing and Recreating the Site List,
removing and recreating the Site - the problems remain. Any assistance with
these issues would be greatly appreciated.
| |
| Murray *TMM* 2004-08-06, 7:15 pm |
| That's an eloquent and comprehensive description of your problem.
Unfortunately, I need to see your code. Can you upload the Template
somewhere and give me a link to it, please?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================
"calicocatsmeow" <webforumsuser@macromedia.com> wrote in message
news:cf0njr$97g$1@forums.macromedia.com...
> Hi - I am new to Dreamweaver and to posting so please be patient if I am
asking
> for help with what seems obvious. I am having trouble with inserting and
> updating Library Items. I have tried to look up information but did not
find
> anything that seemed to help. I have Macromedia Studio MX 2004 (version
7.0.1)
> on Windows XP Pro.
>
> I create web pages from a Template that has multiple editable regions -
title,
> mainnav, leftnav, body. The 'mainnav' and 'leftnav' regions are within
<table>
> tags and the 'body' region is with <td> tags. In the Template, the
'mainnav'
> and 'leftnav' regions contain <tr></tr> tags but the 'body' region has no
html
> markup. I have Library Items that contain DHTML/CSS rendered navigation
bars.
> I need to insert a Library item into the 'mainnav' editable area of a web
page
> and be able to apply updates to the Library Item to the web page, but I
run
> into problems with both issues.
>
> First, the issue with inserting:
> Working within the Assets Library Item category, I make the 'mainnav'
editable
> region active and place my cursor within the region (actually, I have
found I
> need to highlight something within the region...). Next, I insert the
Library
> Item, either by drop and drag or by context sensitive Insert. However,
the
> item is not inserted into 'mainnav' - it is inserted into the 'body'
region if
> that are does not have content and into the 'leftnav' region if 'body'
does
> have content (regardless of whether 'leftnav' has content). I then have
to
> drag the item to 'mainnav'. Shouldn't the Library Item automatically
insert
> into the 'mainnav' region?
>
> Second, the issue with updating:
> When I edit the Library Item within the Assets Library Item category and
apply
> the update to the web pages, 2 things seem to happen. The 'mainnav'
region
> along with the surrounding <table> tags is duplicated - only the duplicate
does
> not contain the <tr> tags. The duplicate region is also named 'mainnav'
(which
> causes an error) and comes before the original 'mainnav' region. The
Library
> Item is updated - but is removed from the editable 'mainnav' region and
placed
> between the two duplicate regions - in the non-editable Template area. In
> order to update the Library Items within the web pages, I must
individually
> re-insert the item into each web page - which defeats the purpose of the
> Library Item. Why in the world is this happening?
>
> I have tried Site > Recreate Cache, Refreshing and Recreating the Site
List,
> removing and recreating the Site - the problems remain. Any assistance
with
> these issues would be greatly appreciated.
>
>
| |
|
|
| Murray *TMM* 2004-08-07, 12:14 pm |
| The usages on your page are unusual -
<table CELLSPACING="0" CELLPADDING="0" bgcolor="#989878" border="0">
<!-- InstanceBeginEditable name="mainnav" -->
*** As far as I know, you cannot have any HTML between <table> and <tr>
<tr><!-- #BeginLibraryItem "/Library/mainnav_sample.lbi" -->
*** This is a little strange, too, having the Library item begin with a <td>
and end with a </td>
<td title="Country Club Home" class="cellnavOff"
If it were me, I'd make that code like this -
<!-- InstanceBeginEditable name="mainnav" -->
<table CELLSPACING="0" CELLPADDING="0" bgcolor="#989878" border="0">
<tr>
<td title="Country Club Home" class="cellnavOff" ...><!--
#BeginLibraryItem "/Library/mainnav_sample.lbi" -->
but this may be a challenge because of the method you are using for your
rollovers. Personally, I'd dump that whole scheme, and just make the
rollovers into CSS rollovers - it'll be MUCH more workable and bandwidth
conservative, while giving exactly the same appearance and operation.
I could be wrong, but I believe that rearranging your code will solve your
INSERTION problems. I am not sure about the updating problems....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================
"calicocatsmeow" <webforumsuser@macromedia.com> wrote in message
news:cf0tld$f7d$1@forums.macromedia.com...
> Hi - thanks for your patience. I was able to get the template posted - as
well
> as a sample page containing the Library File.
>
> Template:
> http://www.appletree-woodworks.com/...lub/sample.html
>
| |
| calicocatsmeow 2004-08-10, 4:14 am |
| Hi Murray,
Thanks so much for your assistance. You were correct about what was making
the Insertion of the Library Item go haywire - not only that, but fixing it
also corrected the updating problem.
As for using CSS rollovers, I have been studying and trying out the methods
used at Projectseven.com as mentioned in other posts here. It's been very
informative and I learned quite a bit in trying it out. I may return with some
more questions regarding that in the future.
Sincerely,
calicocatsmeow
| |
| Murray *TMM* 2004-08-10, 12:14 pm |
| Xref: kermit macromedia.dreamweaver:949140
Excellent. Post back if you continue to have questions/problems!
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================
"calicocatsmeow" <webforumsuser@macromedia.com> wrote in message
news:cf9nsr$cad$1@forums.macromedia.com...
> Hi Murray,
>
> Thanks so much for your assistance. You were correct about what was
making
> the Insertion of the Library Item go haywire - not only that, but fixing
it
> also corrected the updating problem.
>
> As for using CSS rollovers, I have been studying and trying out the
methods
> used at Projectseven.com as mentioned in other posts here. It's been
very
> informative and I learned quite a bit in trying it out. I may return with
some
> more questions regarding that in the future.
>
> Sincerely,
> calicocatsmeow
>
| |
| Murray *TMM* 2004-08-15, 12:15 pm |
| Excellent. Post back if you continue to have questions/problems!
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================
"calicocatsmeow" <webforumsuser@macromedia.com> wrote in message
news:cf9nsr$cad$1@forums.macromedia.com...
> Hi Murray,
>
> Thanks so much for your assistance. You were correct about what was
making
> the Insertion of the Library Item go haywire - not only that, but fixing
it
> also corrected the updating problem.
>
> As for using CSS rollovers, I have been studying and trying out the
methods
> used at Projectseven.com as mentioned in other posts here. It's been
very
> informative and I learned quite a bit in trying it out. I may return with
some
> more questions regarding that in the future.
>
> Sincerely,
> calicocatsmeow
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|