HighDots Forums  

Re: Bug with Templates and CSS Page Designs

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: Bug with Templates and CSS Page Designs in the Macromedia Dreamweaver forum.



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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 04:50 AM







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

<snip>
Quote:
Am I missing something here?
I think ../ because the template is in a sub directory and you have to go
back up to the root.

Try the following
<link rel="stylesheet" href="../emx_nav_left.css" type="text/css">

instead of
link rel="stylesheet" href="emx_nav_left.css" type="text/css">






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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 08:24 AM






It's likely you have saved the stylesheet IN the Templates folder. There
should be no other files in the Templates folder than the template *.dwt
files.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================

"webmaster" <terryuse (AT) btopenworld (DOT) com> wrote

Quote:
"Magnetar" <webforumsuser (AT) macromedia (DOT) com> wrote in message
news:cco04s$k32$1 (AT) forums (DOT) macromedia.com...
snip
Am I missing something here?

I think ../ because the template is in a sub directory and you have to
go
back up to the root.

Try the following
link rel="stylesheet" href="../emx_nav_left.css" type="text/css"

instead of
link rel="stylesheet" href="emx_nav_left.css" type="text/css"







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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 10:36 AM



Thanks for your help.

Using href="../emx_nav_left.css" doesn't seem to work for me. Not sure why.

Also, I've tested several times and taken great care to ensure the stylesheet
is not in the Templates folder. That hasn't worked for me either.

The only way I can seem to have any luck is to:

A -- use href="emx_nav_left.css" in the template
B -- keep an updated copy of the stylesheet in both the Templates and site
root folders. (Copying the stylesheet from the Templates folder the root folder
whenever I modify the template.)


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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 11:01 AM



I am puzzled about this step in your earlier procedure -

Quote:
How do you connect to remote server? Local/Network
What folder on your server do you want to store your files in?
C:\Sites\Temp_Test\
You are defining the Remote server to be the same folder as the local site?
Why?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================

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

Quote:
Thanks for your help.

Using href="../emx_nav_left.css" doesn't seem to work for me. Not sure
why.

Also, I've tested several times and taken great care to ensure the
stylesheet
is not in the Templates folder. That hasn't worked for me either.

The only way I can seem to have any luck is to:

A -- use href="emx_nav_left.css" in the template
B -- keep an updated copy of the stylesheet in both the Templates and
site
root folders. (Copying the stylesheet from the Templates folder the root
folder
whenever I modify the template.)




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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 11:13 AM



OK - I have completed your procedure (with the single exception that I did
not define a remote site pointing back into the local site).

When I open test_b.html and then preview it, I do NOT see a loss of the
stylesheet link.

In the template, the link to the stylesheet is like this (as it should be) -
<!-- TemplateEndEditable --><link rel="stylesheet"
href="../emx_nav_left.css" type="text/css">

In the test_b.html, the link to the stylesheet is like this (as it should
be) -
<!-- InstanceEndEditable --><link rel="stylesheet" href="emx_nav_left.css"
type="text/css">

My folder structure looks like this -

http://www.great-web-sights.com/images/px1.png

I will try with a new site following your instructions exactly.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================

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

Quote:
Thanks for your help.

Using href="../emx_nav_left.css" doesn't seem to work for me. Not sure
why.

Also, I've tested several times and taken great care to ensure the
stylesheet
is not in the Templates folder. That hasn't worked for me either.

The only way I can seem to have any luck is to:

A -- use href="emx_nav_left.css" in the template
B -- keep an updated copy of the stylesheet in both the Templates and
site
root folders. (Copying the stylesheet from the Templates folder the root
folder
whenever I modify the template.)




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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 11:16 AM



Nope - it's going to work this way, too.

When I save the original test_a.html as a template, this is the link to the
stylesheet (as it should be) -

<!-- TemplateEndEditable --><link rel="stylesheet"
href="../emx_nav_left.css" type="text/css">

So - the bottom line is that I cannot reproduce your problem even following
your explicit procedure (thanks for that, by the way - this is the right way
to document a process).

Where to go from here? Do you want to try reinstalling DW?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================

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

Quote:
Thanks for your help.

Using href="../emx_nav_left.css" doesn't seem to work for me. Not sure
why.

Also, I've tested several times and taken great care to ensure the
stylesheet
is not in the Templates folder. That hasn't worked for me either.

The only way I can seem to have any luck is to:

A -- use href="emx_nav_left.css" in the template
B -- keep an updated copy of the stylesheet in both the Templates and
site
root folders. (Copying the stylesheet from the Templates folder the root
folder
whenever I modify the template.)




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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 12:29 PM



I'm running the Studio MX 2004 30 free trial right now, co-existing alongside
an earlier DW4/FW4 installation. I suppose if I'm going to re-install, I should
uninstall those earlier versions. The thought of that makes me cringe, because
if I don't go ahead and purchase DW MX 2004, I'll have to dig up a boatload of
serial numbers to re-install DW4/FW4. Ugh.

I'm going to have to incubate on this little. If I understand you correctly,
even re-defining a remote site that doesn't point to the local site folder
probably won't resolve this issue.

Thanks again for all your help.




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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 12:35 PM



Quote:
uninstall those earlier versions
It wouldn't make any difference. I don't think you need to uninstall them
at all.

Quote:
I'm going to have to incubate on this little. If I understand you
correctly,
even re-defining a remote site that doesn't point to the local site folder
probably won't resolve this issue.
It wouldn't hurt to try it. But please tell me why you did this? I can
think of no reason to ever do that.

But the bottom line is this - any link to *any* file in a template page will
always begin with "../" UNLESS you have specified it as Root Relative in
which case it will begin with "/". If you are seeing otherwise, then you
are doing something wrong.

Try this - create a new file in this site, and link to the stylesheet. Copy
and paste the link code into a reply. Then save the file as a template.
Again, copy and paste the link to the stylesheet into the reply. Finally
spawn a child from the template and copy and paste the link.

Let's take a look at all 3 of those links....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================

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

Quote:
I'm running the Studio MX 2004 30 free trial right now, co-existing
alongside
an earlier DW4/FW4 installation. I suppose if I'm going to re-install, I
should
uninstall those earlier versions. The thought of that makes me cringe,
because
if I don't go ahead and purchase DW MX 2004, I'll have to dig up a
boatload of
serial numbers to re-install DW4/FW4. Ugh.

I'm going to have to incubate on this little. If I understand you
correctly,
even re-defining a remote site that doesn't point to the local site folder
probably won't resolve this issue.

Thanks again for all your help.






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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 03:19 PM



It wouldn't hurt to try it. But please tell me why you did this?

The reason I did this was to avoid having to dig up the username, password
data and other info to ftp to the server. My thinking was that I could do this
later when I was ready to upload files in a more "finished" format.

At any rate, here are the links:



Link from file created in this site:
<link href="/emx_nav_left.css" rel="stylesheet" type="text/css">


Link from making the above file a template.
<!-- TemplateEndEditable --><link href="/emx_nav_left.css" rel="stylesheet"
type="text/css">
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->

Link from making child from the template
<!-- InstanceEndEditable --><link href="/emx_nav_left.css" rel="stylesheet"
type="text/css">


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

Default Re: Bug with Templates and CSS Page Designs - 07-10-2004 , 03:24 PM



Those links will work fine. They are root relative links, and will target
the stylesheet without regard for the location of the targeting page.

Now do the same thing again, only this time when you link to the stylesheet
the first time, make sure you are set to Relative To: Document.

If you are not going to be uploading your files, then defining the remote
server to point at the local site is useless. I wouldn't do it.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
ANSWERS
==================
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
==================

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

Quote:
It wouldn't hurt to try it. But please tell me why you did this?

The reason I did this was to avoid having to dig up the username,
password
data and other info to ftp to the server. My thinking was that I could do
this
later when I was ready to upload files in a more "finished" format.

At any rate, here are the links:



Link from file created in this site:
link href="/emx_nav_left.css" rel="stylesheet" type="text/css"


Link from making the above file a template.
!-- TemplateEndEditable --><link href="/emx_nav_left.css"
rel="stylesheet"
type="text/css"
!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --

Link from making child from the template
!-- InstanceEndEditable --><link href="/emx_nav_left.css"
rel="stylesheet"
type="text/css"




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.