Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-01 17:37:49

coopersita
Member
Registered: 2005-09-28
Posts: 68
Website

error_tag if_individual_article and sticky

Hi,

I’m having problems with stickies. I have some posts that I only want to show as an individual articles, and I don’t want them to show in the prev-next pagination, so I made them stickies.

It all works fine, except that I have:

<txp:if_individual_article>
<txp:if_article_id id=“4”>

somewhere above in my my template. Now I’m getting the following error:

tag_error <txp:if_article_id id=“4”> -> Textpattern Notice: error_article_context on line 1821

If I make the stickies live, then the error goes away, but then the posts show in the list and the prev-next pagination.

Also, I ended having to put two article tags in my template:

<txp:article form=“books” searchsticky=“1” />
<txp:article form=“books” searchsticky=“1” status=“5” />

The first one for the regular posts, the second one for the stickies (searchsticky doesn’t seem to do anything).

The only thing I want is to make the tag error go away.

Any ideas?

PS: I changed status to Live, to suppress the errors, but I still would like to fix the error.

Last edited by coopersita (2007-06-01 17:43:10)

Offline

#2 2007-06-02 08:34:22

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

Re: error_tag if_individual_article and sticky

Are you using the latest stable version of Textpattern? It’s only 4.0.4+ that supports article tags in page templates.

searchsticky has a specific purpose: allow searching – as in through a search form – of sticky articles.

Offline

#3 2007-06-02 15:58:48

coopersita
Member
Registered: 2005-09-28
Posts: 68
Website

Re: error_tag if_individual_article and sticky

I am using 4.0.4

Offline

#4 2007-06-03 07:07:31

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

Re: error_tag if_individual_article and sticky

Looking at the code, the error message looks to be the result of how sticky articles are handled. You’ll need to actually use an article tag in your page.

The second problem is also due to how sticky articles are handled. Read through these articles for related information.

Offline

#5 2007-06-03 15:28:24

coopersita
Member
Registered: 2005-09-28
Posts: 68
Website

Re: error_tag if_individual_article and sticky

Thanks Mary,

I do have an article tag in my page (<txp:article form=“books” searchsticky=“1” status=“5” />), but I guess stickies aren’t handled the same as live articles…

Offline

#6 2007-06-04 05:09:42

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

Re: error_tag if_individual_article and sticky

What I mean is, your if_article_id tag has to be used in your article form, rather than your page.

Offline

Board footer

Powered by FluxBB