Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
View articles in other site without xml feed?
How i can do , to view new article without rss aggregation from my txp in some other site?
<txp:txp_me />
Offline
Re: View articles in other site without xml feed?
If the non txp page is php (or has a php extension) all you need is rah_external_output
with
<txp:article limit="1">
<h3><txp:permlink><txp:page_title /><txp:permlink></h3>
<txp:body />
</txp:article>
and
<?php include($DOCUMENT_ROOT . "http://my-txp-site.tld/?rah_external_output=latest"); ?>
in your “non txp 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
Re: View articles in other site without xml feed?
Oh, thank you so much!
what i need to put into Content-Type ?
i have a trouble with charset in output.
<txp:txp_me />
Offline
Re: View articles in other site without xml feed?
You don’t need anything there but the external document has to have <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: View articles in other site without xml feed?
ok, thanks!) very useful plugin
<txp:txp_me />
Offline
Re: View articles in other site without xml feed?
i get some unknown error. when i put php code to page where want to view, it’s viewing normal, but also it’s view same article with bad encoding.
in form i used article limit=“1”
<txp:txp_me />
Offline
Re: View articles in other site without xml feed?
do you have the source of the external document?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: View articles in other site without xml feed?
you mean source of php page, where i want to view, or source of article which i want to output?
<txp:txp_me />
Offline
Re: View articles in other site without xml feed?
when i include without $DOCUMENT_ROOT . i get two same articles, but one with bad encoding, another with right.
when i using with $DOCUMENT_ROOT . i get one article, but with bad charset.
and, when my article is in russian lang, encoding also are bad…
with php page where i’m include alright.
<txp:txp_me />
Offline
Re: View articles in other site without xml feed?
Katalonian wrote:
you mean source of php page, where i want to view, or source of article which i want to output?
Hi Ziya. The source of the ‘stand alone’ php page where you want to view txp content.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Offline
Re: View articles in other site without xml feed?
Hi Yiannis! Thanks for all, i fixed all!) it’s trouble in my php file) thanks again!
<txp:txp_me />
Offline