Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-15 16:39:50

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

How do I pull textpattern data from another textpattern site?

Recently I re-did my portfolio site, I added a blog and created the whole thing in textpattern. I have since bought another domain and want to separate the blog and portfolio content, one part for each domain. The blog will stay in the same place and the portfolio’s content will move domains.

Both the site’s design, will stay almost exactly the same, but on various pages, most notably the homepage, there are instances when data from both the blog and the portfolio appear as a list of recent articles. I would still like this to happen, but as the blog will be on a separate domain from the main site now, how is this done? Can I pull data from my other textpattern powered site and include it using a form? I know I could use an RSS feed, but it is quite rudimentary and I would rather not…unless I’m mistaken and it can be done gracefully.

Do you understand what I’m getting at? Please ask me more questions if you are in the dark.

PS I would also like to transfer my current portfolio content and move it over to my new site. This can’t be done using the import function, what is the best solution? Will I have to re-enter the information by hand?

Many thanks in advance


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#2 2008-07-15 16:46:35

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,729
Website

Re: How do I pull textpattern data from another textpattern site?

maybe ied_if_domain is what you’re looking for?


TXP Builders – finely-crafted code, design and txp

Offline

#3 2008-07-15 18:30:59

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: How do I pull textpattern data from another textpattern site?

Hi,

Just copy your current site to the other domain, php code and mysql data, then delete what you don’t want from the new site.

Offline

#4 2008-07-15 21:06:27

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: How do I pull textpattern data from another textpattern site?

rathersplendid wrote:

…Can I pull data from my other textpattern powered site and include it using a form? I know I could use an RSS feed, but it is quite rudimentary and I would rather not…unless I’m mistaken and it can be done gracefully.

I think with rss it can be done “gracefully”

Offline

#5 2008-07-15 22:14:35

geoff777
Plugin Author
From: Benarrabá Andalucía Spain
Registered: 2008-02-19
Posts: 282
Website

Re: How do I pull textpattern data from another textpattern site?

I’m with Bert here.

Clone the site and delete.

Why mess around with RSS & forms.

Geoff


There are 10 types of people in the world: those who understand binary, and those who don’t.

Offline

#6 2008-07-15 22:21:18

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How do I pull textpattern data from another textpattern site?

Offline

#7 2008-07-15 23:42:35

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

Re: How do I pull textpattern data from another textpattern site?

If I understood you right, that you want to display certain articles from one site on the pages of another domain, then this method by colak should be interesting.


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

Offline

#8 2008-07-16 08:48:14

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: How do I pull textpattern data from another textpattern site?

geoff777 wrote:

Why mess around with RSS & forms.

From what I understood rathersplendid made two questions.
One was correctly answered by Bert-hgtv (clone and delete).
For the other (having in both homepages articles pulled from the other site) I think rss is the best and easier option.
Obviously it can be I did not understand well what the original question was…

Offline

#9 2008-07-16 11:23:45

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: How do I pull textpattern data from another textpattern site?

Uli, you are correct, i will try Colak’s method as I think it is the right one.

Also, thank you everyone else, I have taken bits from each of you and hopefully it will all work. I will let you know how it goes

Cheers


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#10 2008-07-16 11:46:12

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

Re: How do I pull textpattern data from another textpattern site?

rathersplendid, once you have it working: be so kind and post your code here, so we have another example we can refer to :)


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

Offline

#11 2008-07-16 16:15:25

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: How do I pull textpattern data from another textpattern site?

I have worked out a solution…

I migrated the site over to its new server and to call the articles from the other txp install I used the bit_rss plugin to display the rss feed from that site (i also used the rss_auto_excerpt plugin as bit_rss only allows for the entire body of the article, so I need to create my own excerpt).

It was simple really – now that I’ve worked it out.

thank you for your help


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#12 2008-07-16 23:27:39

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: How do I pull textpattern data from another textpattern site?

rathersplendid wrote:

…to call the articles from the other txp install I used the bit_rss plugin to display the rss feed from that site…

Exactly what I meant ;)

Offline

Board footer

Powered by FluxBB