Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-08-24 07:40:11

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,172
Website GitHub Mastodon Twitter

Re: Back to basics. txp:article list by category

and if the above code doesn’t work you could also try

<txp:variable name="key-archive" value='<txp:article_custom section="weddings" keywords="archive" break="," limit="999"><txp:article_id /></txp:article_custom>' />
<txp:article>
<txp:if_article_id id='<txp:variable name="key-archive" />' >
<txp:hide>for any articles having the keyword 'archive' show nothing</txp:hide>
<txp:else />
your tags
</txp:if_article_id>
</txp:article>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#14 2012-08-28 10:36:40

rossharvey
Member
From: Earth. Sometimes.
Registered: 2005-03-16
Posts: 233
Website

Re: Back to basics. txp:article list by category

Thanks Yiannis, I had already made some changes (added a new archive and used htaccess for URL redirect).

I may revoke that and try your method, much prefer things to be automatic!

Thank you :)

Offline

Board footer

Powered by FluxBB