Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Full article and list of articles on same page
I can’t find out how to get a full article and then a list (in the sidebar) of other articles within the same section. I have used the article_custom tag however that does not work when I use <txp:s /> as the section attribute.
How can this be done so that for each section I have the full article and then a list of the articles within that section?
Many thanks
aftershock
Offline
#2 2006-01-30 00:19:57
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Full article and list of articles on same page
<code><txp:article /></code> is sensitive to the current section, where <code><txp:article_custom /></code> is not; if that helps.
Offline
Re: Full article and list of articles on same page
I have had success using a call to an article form that has a body tag and then an artcile_custom tag (in that order). If the article list comes before the article in the form it can override the original article call. If your list (sidebar) needs to be on the left then output the full article (content column) first in the source code and float it right. That is basically how I do: <a href=“http://fillip.ca/masthead/1_2”>this</a>—with a two column list of artciles for a given category, and the article body (the colophon) on the far right column.
Last edited by Jeff_K (2006-01-30 00:26:41)
Offline
#4 2006-01-30 00:38:54
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Full article and list of articles on same page
Use two <txp:article />
tags with different forms.
Alex
Offline
Re: Full article and list of articles on same page
zem wrote:
Use two<txp:article />
tags with different forms.
And an offset
attribute for the second one.
Offline
Re: Full article and list of articles on same page
Using the article tag would not create a list of articles would it?, it would show a full single article or have I miss understood something.
Thanks
Offline