Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-01-10 16:02:18

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: show article's in category page

category urls

mysite.com/category/categoryname


<txp:txp_me />

Offline

#14 2011-01-10 16:12:19

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

Re: show article's in category page

Your snippet of code works fine on its own page: I get a list of articles in the given category. But I’m assuming you must have more code somewhere else on that Page to handle display of the DTD and <head> section, etc.

As jsoo suggests, the error likely lies there — the usual cause of the ‘missing article tag’ error is an incorrectly-closed tag or a dangling <txp:else /> somewhere. Try making a copy of your page contents, strip it back to the bare elements (or clear it out completely) and build it up conditional-by-conditional to thoroughly check the logic of your page. As you paste chunks back in, you’ll usually find the error suddenly appears or something goes wrong so that helps pinpoint where the problem is.

EDIT: does the page validate? That can also sometimes flag errors.

Last edited by Bloke (2011-01-10 16:13:32)


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

Board footer

Powered by FluxBB