Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » Txp:Die

#1 2008-09-15 20:56:37

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Txp:Die

<txp:die status="404" />


I've added that to one of my pages, because I want to work on it a bit before releasing it public-side, but I can still see the page? Is their a problem with my code? x

~ Cameron

Offline

#2 2008-09-15 21:00:30

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Txp:Die

There is typo (also present in Textbook examples); The tag is <txp:txp_die /> (as die() is reserved core php function, it has to be something else).

So use instead:

<txp:txp_die status="404" />

Edit. Fixed examples and docs in Textbook. – from txp:die to txp:txp_die.

Last edited by Gocom (2008-09-15 21:07:52)

Offline

#3 2008-09-15 21:29:53

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Txp:Die

Cool :) Seems I have assisted the community with something worthwhile :P


~ Cameron

Offline

  1. Index
  2. » How do I…?
  3. » Txp:Die

Board footer

Powered by FluxBB