Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-13 20:01:56

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

txp:related_articles using an article form

txp:related_articles using an article form

This seems like a relatively simple thing to accomplish and I’m not sure why it isn’t integrated already.

All I want to do is the following:

When viewing an individual article in a section of shirts with a category of red I would like to output a list of all articles with the category red in the section of shirts on the sidebar or any other area I choose.

The ability to use an article form to output thumbnails or images is key.

Last edited by mattmikulla (2007-09-13 20:02:49)


Art Rogue – Fine Art Photography

Offline

#2 2007-09-13 20:18:28

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: txp:related_articles using an article form

Hi mattmikulla,

read this FAQ: http://textpattern.com/faq/26/change-the-output-of-txp:Arecent_articles

Last edited by maniqui (2007-09-13 20:18:50)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2007-09-13 20:31:35

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: txp:related_articles using an article form

I want to change the output of txp:related_articles, not recent.


Art Rogue – Fine Art Photography

Offline

#4 2007-09-13 21:11:36

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: txp:related_articles using an article form

By using asy_wondertag :

<txp:asy_wondertag><txp:article_custom limit="10" category="<txp:category />" section="shirts" form="related-list" /></txp:asy_wondertag>

Offline

#5 2007-09-13 21:42:00

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: txp:related_articles using an article form

mattmikulla wrote:

I want to change the output of txp:related_articles, not recent.

Ops! Sorry!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#6 2007-09-15 21:40:29

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: txp:related_articles using an article form

Although asy_wondertag is a plugin your example worked. I changed the category tag to category1 to target better. Awesome!

<txp:asy_wondertag><txp:article_custom limit="10" category="<txp:category1 />" section="gallery" form="article_thumbs" />


Art Rogue – Fine Art Photography

Offline

Board footer

Powered by FluxBB