Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-13 06:04:47

bradmagic
New Member
Registered: 2008-01-13
Posts: 1

News Page. Feeds to non-txtpattern page

Textpattern totally rocks my world, but I can’t figure out something I’m certain must be possible.

I seek to have a few articles on my site’s main page (that isn’t the main page of textpattern.)

How can I effectively make a “news” page or “feed” a few articles to a different part of my website?

Thanks!
-bRad

Offline

#2 2008-01-13 08:22:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: News Page. Feeds to non-txtpattern page

you can use simplepie or similar software to fetch feeds on your page.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-01-13 14:28:35

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

Re: News Page. Feeds to non-txtpattern page

Bit Santos is your Man.


⌃ ⇧ < ⌃ ⇧ >

Offline

#4 2008-01-13 15:09:01

JonahC
Member
From: Toronto
Registered: 2007-09-23
Posts: 39
Website

Re: News Page. Feeds to non-txtpattern page

Another way might be using the method that was discussed in this thread about including a textpattern form in an external php page.

1. In the non-textpattern page, which I assume is a php page, use a require statement to include the news or list of articles or whatever you want. Something like

<?php
require($DOCUMENT_ROOT . "http://yoursite.com/news/");
?>

2. Create a new section in textpattern called “news” (for example) that will only output the articles that you want shown in the non-textpattern page. Because this new section is in textpattern, this section can use any txp tag so you can output a list of most recent articles, the articles themselves or sticky or static articles or pages or whatever.

Regards,

Last edited by JonahC (2008-01-13 15:10:05)


Jonah Calinawan
www.foodportraits.com

Offline

Board footer

Powered by FluxBB