Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » Pages

#1 2008-12-23 00:04:42

scottiii
New Member
Registered: 2008-12-22
Posts: 4

Pages

I made a section called ‘articles’.

I want the main page to be displaying a list of my articles (http://site.com/articles), and underneath (http://site.com/articles/hello). The urls work, but I just don’t know how to set the form up correctly. The subpages seem to be appearing on the main article page, too.

Please help! Thank you.

Offline

#2 2008-12-23 03:20:12

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Pages

Sub pages or sections won’t work that way, a section the way you are using articles is as deep as sections will go. TXP is disregarding hello in the url.

Offline

#3 2008-12-23 08:43:21

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,729
Website

Re: Pages

Sub pages or sections won’t work that way, a section the way you are using articles is as deep as sections will go. TXP is disregarding hello in the url

How so? Is not “articles” the section and “hello” the article? With a section/title url scheme that should work just fine.

Scotti, in your page template that you are using for the “articles” section you will have a txp:article tag. In that tag there should be an attribute listform="form-name-for-article-list-page" and form="form-name-for-individual-article-page". You can define each form differently to show different kinds of results for your section landing page (the article list displays up to 10 articles, more if you increase the value with limit="x") and for the individual article (shows only the current article). If these are both the same they will produce similar output. Try using txp:permlink, txp:title and txp:excerpt in your listform and txp:title and txp:body in your standard individual article form – that will give you a list of linked article titles with excerpt (where entered in the article itself) on the /articles page and a full article on the /articles/hello page.

See the txp tag reference for details of how to use the different tags.


TXP Builders – finely-crafted code, design and txp

Offline

  1. Index
  2. » How do I…?
  3. » Pages

Board footer

Powered by FluxBB