Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
Offline
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