This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2005 > Re: Strange css & templated files bug, has anyone found a solution to this???





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 Re: Strange css & templated files bug, has anyone found a solution to this???
Murray *TMM*

2005-08-01, 11:30 pm

Use a Template parameter that writes a link to a new stylesheet hiding that
div. The CT user can enable or disable that parameter at will - they just
have to remember to set it properly when the publish the finished page....

Meanwhile, I'll look at your code....

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

"j_f" <webforumsuser@macromedia.com> wrote in message
news:dcm958$mih$1@forums.macromedia.com...
> Hi,
> I recently made a css template in DW and was chuffed to find it worked in
> every browser I was concerned with. The only problem was in DW where a
> positioned layer was preventing me from seeing part of the content. This
> isn't
> a problem for me but my client uses contribute, so I decided to track it
> down.
> And I did. And it's extremely odd... I hope some one can help me. (Or at
> least
> console me :disgust; )
>
> I've attached some template code. If you're interested in seeing this in
> action, take the code and save it as a template file. Then make a new page
> from
> it and note the difference in Design View.
>
> The two files should be identical except for the fact that one has some
> template markup and the other has "templated" markup. And now suddenly DW
> goes
> from supporting child selectors to not supporting them! If you want to
> take it
> further, release the new templated file from the template and it'll go
> back to
> supporting child selectors.
>
> Back to my original problem... The only feasible solution I've found so
> far is
> to dynamically insert the child selector into the html either by DOM or
> server
> side methods since, disappointingly, design-time stylesheets can only be
> done
> one page at a time (except by buying a cmx extension).
>
>
>
> <!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=iso-8859-1" />
> <!-- TemplateBeginEditable name="doctitle" -->
> <title>Dreamweaver hack test</title>
> <!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!--
> TemplateEndEditable -->
> <style media="screen" type="text/css">
> <!--
> #fail{
> display:block;
> background:red;
> color:#fff;
> }
> #pass{display:none; background:green; color:#fff;}
>
> html>body #fail {
> display:none;
> }
> html>body #pass{
> display:block;
> }
> -->
> </style>
> </head>
> <body>
>
> <div id="fail">Child selector has failed</div>
> <div id="pass">Child selector is working</div>
>
> </body>
> </html>
>



Murray *TMM*

2005-08-02, 7:21 pm

> Is there any advantage to doing all this through DW or would I be better
> off
> using a scriptlet / ssi?


I always use SSI when I can.

Your idea of the optional region would also work....

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

"j_f" <webforumsuser@macromedia.com> wrote in message
news:dco04j$7sd$1@forums.macromedia.com...
> Thanks Murray!
> I was hoping it would be a documented bug or that I was just doing
> something
> wrong.
>
> I like your idea though. I suppose I could make the whole region optional.
> It's the footer that's causing the problem and as it's not editable anyway
> they
> could just turn it off if it gets in the way. Though, I'll use your
> suggestion
> if I end up using child selectors again.
>
> Is there any advantage to doing all this through DW or would I be better
> off
> using a scriptlet / ssi?
> Cheers,
> John
>



Murray *TMM*

2005-08-03, 7:23 pm

It could be - if you will upload your respective files and post links to
them, I'll take a look.

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

"j_f" <webforumsuser@macromedia.com> wrote in message
news:dcq1s0$c3h$1@forums.macromedia.com...
> Cheers Murray.
>
> So whatcha reckon, is that a bug I've uncovered?
>
> John



Murray *TMM*

2005-08-03, 7:35 pm

/* O6 is supposedly the basis for the DW rendering engine. */

Not true.

But - I see what you mean. Standby - I am checking with MM on this.

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

"j_f" <webforumsuser@macromedia.com> wrote in message
news:dcqvf8$c7$1@forums.macromedia.com...
> This is the simplified template file that I posted at the top along with
> an
> empty file generated from it. These should illustrate the problem the most
> clearly. Just open them both in DW and you should see the difference
> straight
> away.
> http://khf.ie/posn-test.htm - This is generated from the template above.
>
> Thanks again,
> John
>



Murray *TMM*

2005-08-08, 7:22 pm

As a follow-on to this, I can say that the development team is aware of the
shortcoming, and will consider this as a possible addon to a future version.
If IE7 fully supports child selectors, that will raise the level of interest
in implementing this support.

I feel your pain....

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

"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:dco1t7$ap1$1@forums.macromedia.com...
>
> I always use SSI when I can.
>
> Your idea of the optional region would also work....
>
> --
> 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
> ==================
>
> "j_f" <webforumsuser@macromedia.com> wrote in message
> news:dco04j$7sd$1@forums.macromedia.com...
>
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews