Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-15 19:56:06

fiddle
Member
Registered: 2007-10-03
Posts: 87

<txp:article section problem/question

Hi, Im running into a problem building my site. Not sure what is happening, hopefully someone can shed some light..
so i have a section called projects. in my page, i have “<txp:article limit=“4” section=“projects” form=“projects”/>” , in the form i have title and body tags. no links etc.. using ob1_pagination on the page, it links to all my articles, not only projects. shouldnt section=“projects” limit the pagination from displaying the different sections..??? Ive used this before , I think, and never ran into this..
Thanks for any help..

Offline

#2 2009-03-15 20:14:33

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

Re: <txp:article section problem/question

Your problem is in your usage of “section”. The article tag doesn’t take section as an attribute because it is section or context sensitive by design. The current section needs to be specified in the url for the article tag to return article content for that section only. ob1_pagination depends on what is returned as article content, including pagination statistics to operate on a section sensitive basis. In short, move your section declaration to the url. To get an idea of how those should look in practice, look at the output from section_list.

… or use article_custom.

Last edited by rsilletti (2009-03-15 20:20:19)

Offline

#3 2009-03-15 20:46:13

fiddle
Member
Registered: 2007-10-03
Posts: 87

Re: <txp:article section problem/question

I see what your saying.. the problem is that i have all this in one page, and since you say its url specific, it will display all sections in the page.. I think thats the problem. I tried using article custom, but ob1_pagination will not display using article_custom.. Im going to have to play around, find a way around i guess. Thanks for the help rsilletti, any more ideas are welcome…
Thanks again.

Offline

#4 2009-03-15 21:53:51

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

Re: <txp:article section problem/question

All section searches can be assigned to the same page template – take a look at the options available with the use of if_section . Also, sections, even if they are assigned the same page template, will return section sensitive article data and pagination on a per section basis.

Last edited by rsilletti (2009-03-15 21:56:09)

Offline

Board footer

Powered by FluxBB