Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-08 02:42:37

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

How do I use txp:category_list

I am using the following code in my template: <txp:category_list break=“li” wraptag=“ul” />

It is outputting the category link list fine, but when I click on a category I dumps me to the homepage and gives me a textpattern error:

Notice: missing_article_tag: default in /Applications/MAMP/blah_blah/textpattern/publish.php on line 462

I want to click on the category which would result in a page displaying all articles within a category.

Could it me my url scheme, template, or form issue?


Art Rogue – Fine Art Photography

Offline

#2 2007-01-08 09:21:37

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: How do I use txp:category_list

That is because there is missing an article tag in your page template, where there is supposed to be one, so there is nothing to link to:
It’s documented here

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#3 2007-01-08 09:21:58

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: How do I use txp:category_list

Template: your default page is missing an article tag.

Offline

#4 2007-01-08 22:09:02

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

Re: How do I use txp:category_list

Something is still wrong. Assuming I did have everything correct, what should happen if I did click on category link.

Do I need to create an article form to handle the display of the category list. Totally confused.


Art Rogue – Fine Art Photography

Offline

#5 2007-01-08 23:38:04

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: How do I use txp:category_list

What does your default section’s page (“default” is what it is at install) look like?

Offline

#6 2007-01-09 01:27:00

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

Re: How do I use txp:category_list

O.K. now. I have it working.

Last edited by mattmikulla (2007-01-09 03:57:37)


Art Rogue – Fine Art Photography

Offline

#7 2007-01-09 05:52:37

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

Re: How do I use txp:category_list

What would be the best way to isolate or only show my results of category_list on a page without other content?

I would assume conditionals, but which ones and how?


Art Rogue – Fine Art Photography

Offline

#8 2007-01-09 17:58:00

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How do I use txp:category_list

<txp:if_category>
here your content for the category page
<txp:else />
here content for the page when it is not a category list
</txp:if_category>

You can use this more than once on a page (for example main content area, sidebars etcetera)

Offline

#9 2007-01-09 18:00:32

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

Re: How do I use txp:category_list

Thank you very much. I will give it a try.


Art Rogue – Fine Art Photography

Offline

#10 2007-01-13 01:54:11

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

Re: How do I use txp:category_list

Can I use another page other than my default to place the txp:article_tag surrounded by txp:if_category?


Art Rogue – Fine Art Photography

Offline

#11 2007-01-13 02:36:30

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: How do I use txp:category_list

If you are directing category links there, then yes, you can.

Offline

#12 2007-01-13 02:43:46

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

Re: How do I use txp:category_list

Is there any special code that I use, or do I just place the txp:if_category in another template and remove it from my default template?


Art Rogue – Fine Art Photography

Offline

Board footer

Powered by FluxBB