Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-16 18:27:01

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

Error Page Doesn't Recognize Assigned Style

Hello all,

My problem is the error_default page.

What I did:
I basically copied the default page template, altered it a bit and saved it as the error_default page.
I created a style called “error” for this page and a new section with the following settings:

• uses page: error_default
• uses style: error

I created a form with my error message tags in it and referred to it my my page template.

But when I tested it
It doesn’t recognize the style I assigned in the head section.

When I view the source code it appears to still be referring to the default style:

<code>
<link rel=“stylesheet” type=“text/css” media=“screen” href=“http://carinafuller.com/blogeng/textpattern/css.php?n=default” />
<link rel=“stylesheet” href=“http://carinafuller.com/blogeng/textpattern/css.php?n=default” type=“text/css” media=“screen” />
<link rel=“stylesheet” href=“http://carinafuller.com/blogeng/textpattern/css.php?n=default” type=“text/css” media=“screen” /></code>

although I have this in my head section of the error_default page:

<code><txp:css format=“link” />
<link rel=“stylesheet” href=”<txp:css n=“error” />” type=“text/css” media=“screen” />
<link rel=“stylesheet” href=”<txp:css n=“footer” />” type=“text/css” media=“screen” /></code>

I don’t know what I am doing wrong here.

Thank you!
Dada

Offline

#2 2007-01-16 23:52:04

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Error Page Doesn't Recognize Assigned Style

Just an idea but why don’t you remove the link tag and add your style directly to the <head></head> section of the page?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2007-01-17 00:23:47

dada78
Member
From: New York
Registered: 2005-10-27
Posts: 138
Website

Re: Error Page Doesn't Recognize Assigned Style

Thanks Bombsite.
I tried it and it works. I am just wondering why my above approach doesn’t work when I link to the style sheets?

Thanks!

Dada

Last edited by dada78 (2007-01-17 00:44:52)

Offline

#4 2007-01-19 10:33:17

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Error Page Doesn't Recognize Assigned Style

Offline

Board footer

Powered by FluxBB