Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-16 20:04:02

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Definable error page

Gee, I should give Chris Casciano a call and see if he ever resolved his issues :)

Anyway, the error_default page is hardcoded, a bummer for templating.

Chris brought up the inherent problems with templating over a year ago, am I beating a dead horse or what?

Offline

#2 2007-03-16 20:55:47

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Definable error page

Sorry if this is a bit off-topic:
some txp:if_error or txp:if_error_page tags could be very useful

I remember to need them few months ago, but I can’t remember for what.
I think I need them to do some conditionals in the <head></head>.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2007-03-16 22:26:26

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

Re: Definable error page

How is that? What more could you want than error_default, error_404, etc?

Offline

#4 2007-03-16 22:50:22

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Definable error page

I have a <txp:output_form form="head" />
In the head form, I use some conditionals to output different <title></title>. per section/context.

Something like this:

<title><txp:if_individual_article><txp:section title="1" />: <txp:if_section name="efectos"><txp:category1 title="1" /> </txp:if_section><txp:title /> | <txp:sitename />: <txp:site_slogan /></txp:if_individual_article><txp:if_article_list><txp:if_section name=""><txp:sitename />: <txp:site_slogan /><txp:else /><txp:section title="1" /> | <txp:sitename />: <txp:site_slogan /></txp:if_section></txp:if_article_list></title>

Because there is no conditional if_error, I can’t have a particular title for the error_page.

One chance is to create a new head_error form, but that will mean that I have to maintain to differents forms for the head.

Does this make sense?
Thanks.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2007-03-16 23:12:23

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Definable error page

<txp:if_status status="200"><txp:else />This is an error...</txp:if_status>

Offline

#6 2007-03-17 00:58:19

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: Definable error page

Wow!
How did I miss that one?
Many thanks, Sencer.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB