Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-04-16 01:34:01

DogLover
Member
Registered: 2013-04-04
Posts: 26

Linking Article to Outside Website

I am wanting to display a single article on a website that wasn’t created in Textpattern. Is there a way to do that?

Thanks!

Offline

#2 2013-04-16 04:20:25

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

Re: Linking Article to Outside Website

If the other page is php you could install rah_external, create a form with <txp:article_custom id="xx"><txp:body /></txp:article_custom> and name it rah_eo_exteranl_article. Finally call it in the page you wish to display it: <?php echo file_get_contents('http://site.tld/?rah_external_output=exteranl_article'); ?>


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 2013-04-20 00:00:01

DogLover
Member
Registered: 2013-04-04
Posts: 26

Re: Linking Article to Outside Website

Ok, I am wanting to take a article I created in Textpattern and display it on the front page of a site I created in a different site editing program, SiteDelux, which is the editor on ReadyHosting.

Offline

#4 2013-04-20 13:41:07

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Linking Article to Outside Website

DogLover wrote:

Ok, I am wanting to take a article I created in Textpattern and display it on the front page of a site I created in a different site editing program, SiteDelux, which is the editor on ReadyHosting.

That’s exactly what colak’s method does. Have you tried it? Is there anything we can delineate in more detail? Or does perhaps the URL of the ReadyHosting page end in .html?


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#5 2013-04-21 14:43:55

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

Re: Linking Article to Outside Website

Problem seems to be the external editor: … different site editing program, SiteDelux, which is the editor…
Depending on configuration & features SiteDelux might never save raw PHP as intended.

!I assume raw PHP is allowed on ReadyHosting!
To solve that very possible problem you need to edit the homepage file directly on the server.


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

Offline

Board footer

Powered by FluxBB