Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Custom Error Page
I think (might be wrong) that zem_redirect does.
Last edited by colak (2008-04-16 07:40:10)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Custom Error Page
ruud wrote:
All
<txp:page_url />
does is returnhtmlspecialchars($pretext[$type]);
,
Ah ok, makes sense now, thanks. I was being dim. I was assuming that, since <txp:page_url />
returns stuff about the URL in the address bar it was grabbing the parts using PHP’s parse_url(); thus it could get the ‘title’ (path) and offer that as an option too. But, as you point out, then it’s not technically the ‘title’ per se, so it could get confusing. Just ignore me :-)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#15 2008-04-16 09:23:09
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Custom Error Page
colak wrote:
I think (might be wrong) that zem_redirect does.
I checked the documentation and as far as I can see it doesn’t.
Offline
#16 2008-06-09 14:16:57
- Mr. Smith
- Member
- From: Denmark
- Registered: 2006-11-10
- Posts: 56
Re: Custom Error Page
colak wrote:
Error pages are handled by txp in presentation>error_default
Am I supposed to create a whole new page for this to work? I mean, isn’t it possible to get for example “The page you were looking for, http://site.com<txp:page_url />, does not exist.” into my existing design without having to paste everything from my “default” page in the “error_custom” page? Or am I maybe misunderstading something here? :-)
Textpattern n00b
Offline
Re: Custom Error Page
Hi lars
You will need to copy/paste or design another – simpler – custom page. You will also need tags like
<txp:error_status />
<txp:error_message />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#18 2008-06-09 14:38:58
- Mr. Smith
- Member
- From: Denmark
- Registered: 2006-11-10
- Posts: 56
Re: Custom Error Page
Thanks! I’ll probably go with a simpler custom page then.
Textpattern n00b
Offline