Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
category links bringing up empty pages
http://www.ckcmotorsports.com/drivers/
accesses category: drivers
but pulls up a blank page
unless i set the team page to promote associated articles (category: team to the front page, then there is a list of articles.
I have the category ‘team’ with subcategories ‘drivers’ and ‘crew’
http://www.ckcmotorsports.com/team/
pulls up everyone with links at the bottom of the listing to the rest of the crew or drivers.
i don’t want the articles on the front page, but i do want the category links to actually go somewhere since they are automatically generated, i would think they would. What am i missing? Is my logic not the textpattern way?
I’ve searched and couldn’t find anything, even though it seems like such a basic thing that everyone must run into.
Offline
#2 2009-02-02 22:30:00
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category links bringing up empty pages
Your pages /drivers/ and /team/ are pointing to sections, not categories. If you want category pages to use a section page instead of the front page, you need to use the section
attribute in your category links. E.g. <txp:category_list parent="team" exclude="team" section="team" />
will create links like /team/?c=drivers, /team/?c=crew.
Offline
Re: category links bringing up empty pages
oops i accidently gave a link from a section page. Sorry i wasn’t clearer the first time.
at the bottom of each article on this page
http://www.ckcmotorsports.com/team/
the categories are listed, they are links created automatically by textpattern
the links lead to empty pages:
http://www.ckcmotorsports.com/category/drivers/
http://www.ckcmotorsports.com/category/crew/
Last edited by darinlang (2009-02-02 22:49:16)
Offline
Re: category links bringing up empty pages
oh, btw, the central displayed text portion is essentially the default page from a standard 2 day old installation of textpattern. aside from appearance i haven’t done customization of output.
The section of code that is generating the articles with category links at the bottom is <txp:article limit="4" />
I tried to apply your earlier advice but I couldn’t figure out where to put it, since this isn’t in forms
Last edited by darinlang (2009-02-02 23:11:51)
Offline
#5 2009-02-02 23:10:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category links bringing up empty pages
Ah, I see. In your article form you will find these tags: <txp:category1 link="1" />
and <txp:category2 link="1" />
. If you add the attribute this_section="1"
to both tags the links will use the current section page. Or you can use section="team"
.
Offline
Re: category links bringing up empty pages
that got it, Els. Working as it should now. I used ‘this_section’ because that will make it generic in case i move it. Thank you very much. :-)
Last edited by darinlang (2009-02-02 23:23:42)
Offline