Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-12-14 14:02:47

Gallex
Member
Registered: 2006-10-08
Posts: 1,294

articles titles list on category page

<txp:if_category>
<txp:category title="1" wraptag="h6" />
<txp:article_custom category='<txp:category />' wraptag="ul" break="li">
<txp:permlink><txp:title /></txp:permlink>
</txp:article_custom>
</txp:if_category>

i get warning “Tag error: -> Textpattern Notice: Page template default_est does not contain a txp:article tag. while parsing form None on page default_est”

how to fix that? where i should put this article tag?

Offline

#2 2017-12-14 15:02:41

etc
Developer
Registered: 2010-11-11
Posts: 5,082
Website GitHub

Re: articles titles list on category page

Gallex wrote #308309:

how to fix that? where i should put this article tag?

Either

  • replace <txp:article_custom category='<txp:category />' ... /> with <txp:article frontpage="" ... />
  • or don’t pay attention to this warning if no pagination is needed.

Offline

#3 2017-12-15 10:56:04

Gallex
Member
Registered: 2006-10-08
Posts: 1,294

Re: articles titles list on category page

etc wrote #308310:

Either

  • replace <txp:article_custom category='<txp:category />' ... /> with <txp:article frontpage="" ... />
  • or don’t pay attention to this warning if no pagination is needed.

those articles section don’t appear on a frontpage, so i choosed a second option.

Offline

#4 2017-12-15 11:16:03

etc
Developer
Registered: 2010-11-11
Posts: 5,082
Website GitHub

Re: articles titles list on category page

Gallex wrote #308311:

those articles section don’t appear on a frontpage, so i choosed a second option.

Starting with txp 4.6, frontpage="" disables “on frontpage” section filter, so the first option should be ok too.

Offline

#5 2017-12-19 08:28:17

Gallex
Member
Registered: 2006-10-08
Posts: 1,294

Re: articles titles list on category page

etc wrote #308312:

Starting with txp 4.6, frontpage="" disables “on frontpage” section filter, so the first option should be ok too.

you were right. i also needed to add allowoverride="0" to work as i ment.

Offline

Board footer

Powered by FluxBB