Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-06 17:21:13

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

combine sections into one?

on my blog’s page i use the txp:article tag to generate posts. but i have a new section that i’d like to combine into this feed. if it was article_custom i guess i could do section=“section1, section2” and they’d be combined, but not in this case. any suggestions?

Offline

#2 2010-02-06 19:32:08

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: combine sections into one?

Just tell Textpattern to show articles from that section on the frontpage.
That’s the fast help text from the section preferences:

Textpattern Help

Section Article Appear on Front Page

The articles in some sections, such as those resembling more ‘static’ web pages, may seem out of place in the time-sensitive flow of your site’s front page.

Setting this to ‘no’ will prevent articles assigned to this section from appearing on the front page.

Source: http://rpc.textpattern.com/help/?item=section_on_frontpage&language=en-us

Same for RSS feed…

[OT] Edit: Note that language=en-us is the important part in the URL to get good output. For many other country codes eg en-en no specific help text is available.

Last edited by merz1 (2010-02-06 19:35:47)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#3 2010-02-06 19:52:35

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: combine sections into one?

for my front page i use article_custom to display any blog posts. the blog is just a sub-section of the site. sorry for the confusion.

i’m thinking the solution is going to be to move all the articles in my special section over to the blog section and keep them all the same section.

Offline

#4 2010-02-06 20:49:04

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

Re: combine sections into one?

mrtunes wrote:

on my blog’s page i use the txp:article tag to generate posts. but i have a new section that i’d like to combine into this feed. if it was article_custom i guess i could do section=“section1, section2” and they’d be combined, but not in this case. any suggestions?

Is there a reason why you can’t use article_custom?

Offline

#5 2010-02-06 21:01:04

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: combine sections into one?

mrtunes wrote:

i’m thinking the solution is going to be to move all the articles in my special section over to the blog section and keep them all the same section.

Sound good. It’s easy to do with TXP’s multiedit function (the box below backend’s article list).

If you need really customized feeds you can build them with standard tags and plugins; MattD: I used rah_external_output and the following code[…].

Els wrote:

Is there a reason why you can’t use article_custom?

Maybe mrtunes requires pagination without tricks and twootnostlets* :> If not, article_custom might be the right way to go :-)

(*you can paginate article_customs but it requires some PHP counting).

Last edited by Gocom (2010-02-06 21:07:31)

Offline

#6 2010-02-06 21:19:38

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: combine sections into one?

this is correct. i figured txp:article was always best for something like a blog section. i will keep rah_external_output in mind as i keep experimenting with the feed though! i’ve been thinking about using it for a bunch of things lately actually :)

Offline

Board footer

Powered by FluxBB