Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-27 05:39:15

fiddle
Member
Registered: 2007-10-03
Posts: 87

getting a tag error, not sure why

Hi all, Im new to TXP, I keep getting this error on the top of the page:
Tag error: -> Textpattern Notice: Page template motorsports does not contain a txp:article tag on line 464
Im using this tag – <txp:article_custom id=“9” section=“motorsports” />
Im using the same tag to call a specific article in another page, I dont get the error in the other page..?? Any ideas would be very helpful..
Thanks

Offline

#2 2007-11-27 06:08:55

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: getting a tag error, not sure why

Not sure what I did, but I fixed this. Somehow I was using the tag wrong…dont see how, the other page uses the tag exactly the same way calling a different article, but that was it. Now Im using <txp:article status=“5” /> status 5 I guess means sticky article… If anyone can clarify why my original tag wasent working, Id appreciate it, get a better understanding of the structure.. Thanks again.

Offline

#3 2007-11-27 06:12:13

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: getting a tag error, not sure why

The error is because you didn’t have <txp:article /> in your page template. <txp:article /><txp:article_custom />txp:article is required.

Also, your status value is invalid – it looks like Textpattern is ignoring it. Acceptable attributes: draft, hidden, pending, live (default value), sticky. If you drop the status attribute, it should display.

Last edited by jm (2007-11-27 06:16:01)

Offline

#4 2007-11-27 08:55:04

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: getting a tag error, not sure why

For the status attribute, ‘5’ is a valid value. I wouldn’t recommend use anything but ‘sticky’ and ‘live’ for that attribute as non-numeric values (consider it a bug that the others are accepted).

Offline

#5 2007-11-28 21:44:23

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

Re: getting a tag error, not sure why

The “error” wasn’t an error but a notice (or “very mild warning”). If you don’t need an article tag on that page, you don’t have to use one, just be aware of what the difference is between article and article_custom.

For the status attribute, ‘5’ is a valid value.

To elaborate: the tag accepts both numbers and strings: the former is for the database, the latter is the human-friendly short-hand (who wants to memorize what the numbers mean?).

Offline

#6 2007-11-30 21:35:58

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: getting a tag error, not sure why

Thanks for all the help.. Im on my way to understanding what Im doing here…..thanks again.

Offline

Board footer

Powered by FluxBB