HighDots Forums  

position:absolute breaks InstanceBeginRepeat

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss position:absolute breaks InstanceBeginRepeat in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PCalhoun
 
Posts: n/a

Default position:absolute breaks InstanceBeginRepeat - 02-14-2005 , 03:22 PM






I'm having an issue with InstanceBeginRepeat in design view in DWMX templates.
If the region is within an positioned block the region icons are inaccessible.
There are forms of this. If the position is added to the table tag, a
"cross-arrow" cursor appears over the region icons which are inactive. If I
place the table within a DIV tag and add the position style to the DIV, then a
"circle with line" cursor appears.

Here's a sample of the code block from the template:

<!-- InstanceBeginEditable name="LinksDweezil" -->
<table style="position:relative;top:309px; left:30px; height:300px;
width:170px" border="0" cellspacing="0" cellpadding="0">
<!-- TemplateBeginRepeat name="QuestionLinks" -->
<tr>
<td><!-- TemplateBeginEditable name="Link" -->&nbsp;<!--
TemplateEndEditable --></td>
</tr>
<!-- TemplateEndRepeat -->
</table>
<!-- InstanceEndEditable -->

An instance of this template repeat region is then uneditable in design
view... However, if you use the menu it works.

For example, Modify/Templates/Repeating Entries/New Entry at End Works.

Is this a know bug? Is there a workaround? Any help would be appreciated,

- Paul


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-14-2005 , 03:32 PM






Don't often see positioned tables. But it does work. Why are you using
them?

As for your issue, I'm afraid it's one you will have to take up with the
development team -

http://www.macromedia.com/support/email/wishform/

--
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
==================

"PCalhoun" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I'm having an issue with InstanceBeginRepeat in design view in DWMX
templates.
If the region is within an positioned block the region icons are
inaccessible.
There are forms of this. If the position is added to the table tag, a
"cross-arrow" cursor appears over the region icons which are inactive. If
I
place the table within a DIV tag and add the position style to the DIV,
then a
"circle with line" cursor appears.

Here's a sample of the code block from the template:

!-- InstanceBeginEditable name="LinksDweezil" --
table style="position:relative;top:309px; left:30px; height:300px;
width:170px" border="0" cellspacing="0" cellpadding="0"
!-- TemplateBeginRepeat name="QuestionLinks" --
tr
td><!-- TemplateBeginEditable name="Link" -->&nbsp;<!--
TemplateEndEditable --></td
/tr
!-- TemplateEndRepeat --
/table
!-- InstanceEndEditable --

An instance of this template repeat region is then uneditable in design
view... However, if you use the menu it works.

For example, Modify/Templates/Repeating Entries/New Entry at End Works.

Is this a know bug? Is there a workaround? Any help would be
appreciated,

- Paul




Reply With Quote
  #3  
Old   
PCalhoun
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-14-2005 , 04:32 PM



Hi,

There's no reason that I would apply styles to a table either. I was looking
for a workaround to this issue and simply tried everything I could think of.
In general we assign CSS styles to the DIV class. As noted before this doen't
work either in the cotext of the repeating region.

BTW, I bought your book...

Thanks,

Paul.


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-14-2005 , 04:58 PM



No, THANK YOU! 8)

I think it's a <shh> bug.... 8(

--
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
==================

"PCalhoun" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi,

There's no reason that I would apply styles to a table either. I was
looking
for a workaround to this issue and simply tried everything I could think
of.
In general we assign CSS styles to the DIV class. As noted before this
doen't
work either in the cotext of the repeating region.

BTW, I bought your book...

Thanks,

Paul.




Reply With Quote
  #5  
Old   
PCalhoun
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-14-2005 , 09:43 PM



You're welcome.

I read the section on passthrough several times. Then I saw in one of your
responses in this forum that you wouldn't use it. You should have said that in
the book! Ah, well...

I'm trying to recode in Dreamweaver a set of templates that are currently
functional in ColdFusion. I'm finding that they really don't map very well
between the two applications. In particular, I can do the kinds of inheritance
in DW that I am accustomed to doing in CF and other object languages. This
makes reusablity of code a bit difficult. The library is useless for us.
Template nesting works, but is strictly one to one... one child to parent. I
really want siblings.

So, I've flattened the design out to a base layer template, a compenent layer
child (with lots of conditionals) and the actual template layer. This is
beginning to work. However, the way that I was differentiating the different
components was to apply CSS styles in the template layer. This way I can have
different functionality and placement on things like buttons.

The bug in CSS styles in DHTML is really going to make this hard. Any ideas?

Paul.




Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-15-2005 , 06:59 AM



Paul:

I'm at a loss to really understand what you are describing about your
approach, but it's not the first time I've felt that way.... 8)

There is quite a bit of logic that you can build into the design-time
functionality of DMX/DMX2004 templates, as you will see in the section on
parameters and expressions in that book. Perhaps some of this can help you?

Quote:
The bug in CSS styles in DHTML is really going to make this hard. Any
ideas?
You mean the repeat region thing? To be honest, I don't find much value in
repeat regions, and repeat tables. When I need something like that, I just
code it with in-place template expressions.

--
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
==================

"PCalhoun" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
You're welcome.

I read the section on passthrough several times. Then I saw in one of
your
responses in this forum that you wouldn't use it. You should have said
that in
the book! Ah, well...

I'm trying to recode in Dreamweaver a set of templates that are currently
functional in ColdFusion. I'm finding that they really don't map very
well
between the two applications. In particular, I can do the kinds of
inheritance
in DW that I am accustomed to doing in CF and other object languages.
This
makes reusablity of code a bit difficult. The library is useless for us.
Template nesting works, but is strictly one to one... one child to
parent. I
really want siblings.

So, I've flattened the design out to a base layer template, a compenent
layer
child (with lots of conditionals) and the actual template layer. This is
beginning to work. However, the way that I was differentiating the
different
components was to apply CSS styles in the template layer. This way I can
have
different functionality and placement on things like buttons.

The bug in CSS styles in DHTML is really going to make this hard. Any
ideas?

Paul.






Reply With Quote
  #7  
Old   
PCalhoun2
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-15-2005 , 08:39 AM



Thanks again for the reply.

It might make more sense if you had an idea of *what* we build... I work for
an eLearning software company. The evolution of the software is to move from
CD-ROM applications to DHTML on an intranet. The design of the software is
constrained by being limited to a fixed window size. There is no page
scrolling. (Mostly this is a result of client expectation. A scrolling
webpage doesn't feel like an application.) Therefore, we use positioned
components extensively.

A component might be text or a list of responses to a situation that a learner
can choose from (like a multiple choice question), or a list of links. It's
these links that I need the repeating region for.

Believe me, I'm using everything the template logic can offer. I had an idea
in writting this though. What I've been calling components are part of our own
library of items that we include on a page. These we have written in whatever
language the templates are in... C, Python, Java, CF, etc. However, I could
mix Flash in with these Dreamweaver templates and add Flash components. I
can't imagine what the developer interface would be though.

I've probably made this more, rather than less confusing. You should know
though that the eLearning industry is going heavily to the web. This is in
part dictated by the current standard for tracking, SCORM. So, it would be
great to have a way to build SCORM client web-based courses in Dreamweaver.

Thanks,

Paul



Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-15-2005 , 09:18 AM



Thanks! This helps me understand the context of your needs.

You may want to make some suggestions directly to the DW development team -

http://www.macromedia.com/support/email/wishform/

--
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
==================

"PCalhoun2" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks again for the reply.

It might make more sense if you had an idea of *what* we build... I work
for
an eLearning software company. The evolution of the software is to move
from
CD-ROM applications to DHTML on an intranet. The design of the software
is
constrained by being limited to a fixed window size. There is no page
scrolling. (Mostly this is a result of client expectation. A scrolling
webpage doesn't feel like an application.) Therefore, we use positioned
components extensively.

A component might be text or a list of responses to a situation that a
learner
can choose from (like a multiple choice question), or a list of links.
It's
these links that I need the repeating region for.

Believe me, I'm using everything the template logic can offer. I had an
idea
in writting this though. What I've been calling components are part of
our own
library of items that we include on a page. These we have written in
whatever
language the templates are in... C, Python, Java, CF, etc. However, I
could
mix Flash in with these Dreamweaver templates and add Flash components. I
can't imagine what the developer interface would be though.

I've probably made this more, rather than less confusing. You should know
though that the eLearning industry is going heavily to the web. This is
in
part dictated by the current standard for tracking, SCORM. So, it would
be
great to have a way to build SCORM client web-based courses in
Dreamweaver.

Thanks,

Paul





Reply With Quote
  #9  
Old   
PCalhoun2
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-15-2005 , 10:12 AM



Thanks, for your help. I will follow-up with the development team.

As always, the project is needed immediately. So, I'll come up with a solution using what I've got.

Reply With Quote
  #10  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: position:absolute breaks InstanceBeginRepeat - 02-15-2005 , 11:19 AM



Good luck!

--
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
==================

"PCalhoun2" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Thanks, for your help. I will follow-up with the development team.

As always, the project is needed immediately. So, I'll come up with a
solution using what I've got.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.