Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-12 18:02:26

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

List Category Title with All Articles in that Category Under Title

I’m sure I can do this with conditionals but how.

Section would be fruit:

Apples
  • Why apples are great
  • Why apples are red
  • Apples are better than organges
Oranges
  • Oranges are orange, didn’t you know
Pears
  • Pear roundup 1
  • Pear Fair, be there
  • Pears ward of evil spirits

Last edited by mattmikulla (2007-05-12 18:15:57)


Art Rogue – Fine Art Photography

Offline

#2 2007-05-12 18:25:09

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: List Category Title with All Articles in that Category Under Title

If you only use category1, then perhaps you can do it like this:

<ul><txp:article_custom section="fruit" sort="category1" form="myform" /></ul>

myform:

<txp:if_different></ul><txp:category1 /><ul></txp:if_different>
   <li><txp:title /></li>

Offline

#3 2007-05-12 18:33:16

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

Re: List Category Title with All Articles in that Category Under Title

Thanks. It worked.

I was doing something very similar but I had the sorting wrong.


Art Rogue – Fine Art Photography

Offline

Board footer

Powered by FluxBB