Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-28 07:34:08

fangonk
Member
Registered: 2007-07-12
Posts: 44

Exluding current article with article_custom

I want to make a list of related articles but the built-in txp:related_articles can’t uses forms, which (at least for my purposes) makes it a little useless. Is there any way to build a list of related articles that can be passed through a form and (here is the important part) excludes the current article? Is there a plug-in for this? Currently, I am using code that looks like this:

<txp:asy_wondertag><txp:article_custom section=“articles” limit=“10” category=”<txp:category />” listform=“article_listing” /></txp:asy_wondertag>

But this fails to exclude the current article.

Offline

#2 2008-03-28 07:58:55

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Exluding current article with article_custom

Try ruud’s rvm_if_this_article plugin.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2008-03-28 08:35:42

Bablorub
New Member
Registered: 2008-03-28
Posts: 1

Re: Exluding current article with article_custom

Thanx anyway jakob, might come in handy :)


http://www.mybestcity.com – cityblocks
http://www.newbabyassistant.com – babycare

Offline

#4 2008-03-28 08:49:55

fangonk
Member
Registered: 2007-07-12
Posts: 44

Re: Exluding current article with article_custom

Beautiful, works like a charm…I don’t know why I wasn’t able to find this on my own. Thank you.

Offline

Board footer

Powered by FluxBB