Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-14 13:57:20

swati.miniyar
Member
Registered: 2007-08-06
Posts: 39

how to remove error "Page template does not contain a txp:article..."

I am having a page called “about us”.section author uses “about us” page.i have to display a article from a section called “author”.So i have to use

<txp:article_custom section=“author” /> tag ..

I am getting error like

—————Page template author_link does not contain a txp:article tag on line 464 ————-

In most of the pages i am getting same error .
How to get rid of this?Please help..

Offline

#2 2007-08-14 14:14:07

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: how to remove error "Page template does not contain a txp:article..."

Hi

Try to put before your txp:article_custom tag this one : <txp:article pgonly=“1” />
This tag output nothing but can remove your error.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#3 2007-08-14 15:35:24

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: how to remove error "Page template does not contain a txp:article..."

Pesonally, I think the inclusion of this error in a core install is dubious, since there are many good reasons (image only galleries, calendar pages) that you might not want an article tag on a page.

Take it out, take it out…

Offline

#4 2007-08-16 00:37:44

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

Re: how to remove error "Page template does not contain a txp:article..."

It isn’t. Turn your debugging mode to “live” and the warning goes away.

Offline

Board footer

Powered by FluxBB