Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-02-19 21:53:47
- cabes
- Member
- Registered: 2008-01-01
- Posts: 28
Linking articles together with custom field?
Hi,
I am trying to set it up so on an individual article page, the right bar next to it will have an article that goes with the article in the body. I am having trouble figuring out how to link articles to each other. Is there a way to maybe just have a custom field that maybe you could assign a number to for all the articles you want linked together? I know this sounds like just a category issue, but I need it for ever new article posted. So say 300 articles all have side articles that go with them, I cant use comments, or the excerpt, I just need a way to easily have it so maybe you could do some kind of display articles with the same custom field as the individual main article being displayed.
Does that make sense? let me know if I need to clarify.
Thanks everyone,
Caleb
Offline
Re: Linking articles together with custom field?
how about grouping them by keywords and use txp:related_articles
Offline
#3 2008-02-20 07:22:24
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Linking articles together with custom field?
related_articles uses categories, not keywords. If you want to link them by keywords or custom field, use article_custom.
Offline
#4 2008-02-20 16:51:33
- cabes
- Member
- Registered: 2008-01-01
- Posts: 28
Re: Linking articles together with custom field?
ok keywords should work fine, but I am still confused.
So say I set two articles to have the same keywords and want them displayed on the one page. I need to some how say, Display articles with the same keywords as the article that is being displayed. On the keywords field for custom articles, or just articles, I am just seeing a place to type in the actual keywords.
Sorry, I am just having trouble figuring this out.
Caleb
Offline
#5 2008-02-20 22:44:39
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: Linking articles together with custom field?
I don’t know if I understood correctly but I would go this way:
1) give the same password to the articles you want to be displayed together
2) now you should use a fundamental plugin (asy_wondertag) which allows you to set a tag as an attribute for another tag so in a page you could have something like:
<txp:article_custom />
<txp:asy_wondetag>
<txp:article_custom keywords="<txp:keywords />" />
</txp:asy_wondetag>
I Hope this makes sense
Last edited by redbot (2008-02-21 01:54:30)
Offline
#6 2008-02-21 01:52:37
- cabes
- Member
- Registered: 2008-01-01
- Posts: 28
Re: Linking articles together with custom field?
Oh nice! Thanks so much for your help.
Offline