Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Move only a particular section to a new installation
I wanted to move a particular section of my current txp install, let’s say it’s called photoblog. How do I move the entries of that section to a new install?
Offline
Re: Move only a particular section to a new installation
Hi,
What I’ve done in the past is to export the database with phpMyAdmin. Then I FTP a local copy of the site’s files, this brings along images and everything.
Then I tweak the /textpattern/config.php on this local copy and I FTP up the local copy up to the new site. I create the new database with phpMyAdmin on the web server and import the database I exported above. I sign on to the new site and adjust the admin preferences and test the site.
Then it’s just a case of removing whatever articles you don’t want on this new site and making this new section the default so it appears on the front page.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
Re: Move only a particular section to a new installation
You could always drop into phpMyAdmin after following all of Hcgtvs steps then
- show the Textpattern table
- sort it by section
- check all articles that belong toyour section
- then use the export button at the bottom of the list (selecting “replace”)
- then replace the textpattern install in your new install.
You could write a query to do the select automagically, but that kind exceeds my expertise.
[Edit] Look Ma I made a query
SELECT title FROM textpattern WHERE Section = 'your_section_name' LIMIT 1 , 300;
Last edited by mrdale (2006-12-26 06:43:09)
Offline