Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-11-05 02:27:42
- sgoodwin
- Member
- From: Boston, MA
- Registered: 2006-05-11
- Posts: 13
my category link destination pages don't show any content
so sorry if this is explained elsewhere… I’ve tried to find it, but without success. I’m developing a site at http://72.18.159.5/~herjutkj/. I’ve got sections listed horizontally across the top of the page, then, in the portfolio section I’ve created some categories. In the left column on that page, I’m getting a list of the categories for that section
<txp:category_list active_class="selected" this_section=1 wraptag="ul" break="li" />
but when I click on any of those links, I’m not getting to any of the articles in that category. Here’s what I have in my page template:
p:if_individual_article> <ul id="prevnext"> <li><txp:link_to_prev><txp:prev_title /></txp:link_to_prev></li> <li><txp:link_to_next><txp:next_title /></txp:link_to_next></li> </ul> <txp:article form="static_article" status="live" limit=1 /> </txp:if_individual_article> <txp:if_article_list> <txp:article form="static_article" status="sticky" limit=1 /> </txp:if_article_list>
I know this is probably something really simple, and I thank you in advance for your help.
Offline
#2 2006-11-05 05:29:19
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: my category link destination pages don't show any content
You’re telling it to only show sticky articles. :)
Offline
#3 2006-11-05 15:29:34
- sgoodwin
- Member
- From: Boston, MA
- Registered: 2006-05-11
- Posts: 13
Re: my category link destination pages don't show any content
oh! I see what you mean… how can I make this work, so that when I click on a category name in the left column, I get to browse through the articles in that category (prev|next)… do I need to make the categories sections instead? Thanks for your help!
Last edited by sgoodwin (2006-11-05 16:00:45)
Offline
#4 2006-11-05 17:18:08
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: my category link destination pages don't show any content
Just ad a <txp:article />
tag:
<txp:if_individual_article>
<ul id="prevnext">
<li><txp:link_to_prev><txp:prev_title /></txp:link_to_prev></li>
<li><txp:link_to_next><txp:next_title /></txp:link_to_next></li>
</ul>
<txp:article form="static_article" status="live" limit=1 />
</txp:if_individual_article>
<txp:if_article_list>
<txp:if_category>
<txp:article form="..." limit="..." />
<txp:else />
<txp:article form="static_article" status="sticky" limit=1 />
</txp:if_category>
</txp:if_article_list>
Offline
#5 2006-11-05 19:48:44
- sgoodwin
- Member
- From: Boston, MA
- Registered: 2006-05-11
- Posts: 13
Re: my category link destination pages don't show any content
awesome! thank you!
Offline