Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2018-03-02 18:23:33
- catonine
- New Member
- Registered: 2018-03-02
- Posts: 9
How to print an article of specific category of current section?
I’m trying but nothing works.
Think this must be something like that:
<txp:article_custom section='<txp:section />' category="mycat" limit="1"/>
Thanks.
Offline
Re: How to print an article of specific category of current section?
catonine wrote #309588:
I’m trying but nothing works.
Think this must be something like that:
<txp:article_custom section='<txp:section />' category="mycat" limit="1"/>...
Thanks.
Do you have any articles in the section you are accessing?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2018-03-02 19:08:43
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,305
Re: How to print an article of specific category of current section?
Are these articles set to “live”? Does the above tag belong to the correct “TXP page”/template? Do articles have the correct category?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#4 2018-03-02 19:32:06
- catonine
- New Member
- Registered: 2018-03-02
- Posts: 9
Re: How to print an article of specific category of current section?
colak wrote #309589:
Do you have any articles in the section you are accessing?
yes, >= 1
uli wrote #309590:
Are these articles set to “live”? Does the above tag belong to the correct “TXP page”/template? Do articles have the correct category?
They all are active.
I tried to do differently:
<txp:if_custom_field name=“foo” />
<txp:article foo=“print” />
</txp:if_custom_field>
but I got an errors
Many errors like Undefined offset
and
Textpattern Notice: article tags can’t be used outside of articles context
Offline
#5 2018-03-02 19:35:16
- catonine
- New Member
- Registered: 2018-03-02
- Posts: 9
Re: How to print an article of specific category of current section?
catonine wrote #309591:
yes, >= 1
They all are active.
I tried to do differently:
<txp:if_custom_field name=“foo” />
<txp:article foo=“print” />
</txp:if_custom_field>but I got an errors
Many errors like Undefined offset
and
Textpattern Notice: article tags can’t be used outside of articles context
But it works…
Offline
#6 2018-03-02 21:04:03
- catonine
- New Member
- Registered: 2018-03-02
- Posts: 9
Re: How to print an article of specific category of current section?
solved with soo_article_filter v0.3.3
<txp:soo_article_filter foo=“print”>
<txp:article />
</txp:soo_article_filter>
Offline