Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-01 03:50:38

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Tags that should produce an error, but don't

Most of Textpattern’s tags were written before we had a useful way of displaying error messages (debug/test/live mode didn’t appear until after the 4.0 release). This means there are a bunch of tags that fail silently when something goes wrong, rather than alerting the user that there’s a problem.

We don’t need detailed test or bug reports for these, since the symptoms are the same (expected result is an appropriate error message; actual result is no tag output). Instead, all we need for most of these is a clear example of a tag that should produce an error (but doesn’t).

Here’s a few to get the ball rolling:

In a non-article context (e.g. on a section or category list page):

<txp:title />
<txp:excerpt />
<txp:body />
<txp:permlink>plink</txp:permlink>

Anywhere:

<txp:section name="no_such_section" />
<txp:category name="no_such_category" />

Alex

Offline

#2 2006-03-07 19:50:25

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,327
Website Mastodon

Re: Tags that should produce an error, but don't

txp:output_form without a form attribute dies too silently, IMHO. I have a habit of assigning form and name attributes deliberately and scratch my head for minutes afterwards.

Last edited by wet (2006-03-07 19:50:40)

Offline

Board footer

Powered by FluxBB