Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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?
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
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>
.
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
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.
Offline
Re: Definable error page
<txp:if_status status="200"><txp:else />This is an error...</txp:if_status>
Offline
Re: Definable error page
Wow!
How did I miss that one?
Many thanks, Sencer.
Offline