Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-10-28 15:10:59
- leafy_loader
- Member
- Registered: 2008-09-25
- Posts: 96
Showing articles that are not assigned to a category
Is there a way to display a section article only if it is not assigned to a category?
My main navigation consists of sections and the sub navigation or drop downs are categories. I can list the category articles easy enough but if I click on the top level nav (a section) then it lists ALL articles under that section. But I only want it to show articles that are assigned to the section but not to any category.
Offline
#2 2009-10-28 17:13:13
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Showing articles that are not assigned to a category
Probably better done with a smart smd_query query but here’s another solution.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#3 2009-10-28 17:47:08
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Showing articles that are not assigned to a category
Wouldn’t this do the same? Don’t know if it uses more queries or not…
<txp:article_custom section='<txp:section />'>
<txp:if_article_category>
<txp:else />
<txp:title />
</txp:if_article_category>
</txp:article_custom>
Offline