Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-08-13 12:45:14

dmarino
Member
From: Southern New Hampshire
Registered: 2007-06-15
Posts: 18
Website

Archive old version of website and keep it active...

This may be a little tricky to explain, but I haven’t found a way to do this yet. I want to archive old designs of my website, for example v1.iamdanielmarino.com, v2.iamdanielmarino.com, etc… and have them all pull from the current txp database for articles. It seems like it should be easy – just have the “textpattern” directory in every hostname (apache virtual server) (v1., v2., etc…) and in the config.php file have it point to the same database. Where this theory gets messed up, is that all of the sections, pages and forms are stored in the database too, so all the different versions would end up pulling the same markup as well (One thing I considered is to use the same markup for each new design and rely on each versions css to completely work the style/design, but it is kind of unreasonable).

I love txp and would love to get to know 4.2 when it comes out of beta, but this has always been kind of a pain whenever I’ve redesigned my site, which I admit I do more often than I should! And I always end up having to do some sort of live redesign/refresh or take my site down while removing the old design and installing the new.

I’ve considered Wordpress because I know that it’s templating engine works on actual files in a directory rather than database-stored markup. But other than this debacle, I love TXP and would hate to have to switch.

Any ideas?

Offline

#2 2009-08-13 14:08:14

lreynolds
Member
From: Burlington, ON, Canada
Registered: 2007-02-09
Posts: 30
Website

Re: Archive old version of website and keep it active...

I redesigned my site recently, and just moved the old site to v1.lsquareddesign.ca and copied the articles from the old site to the new one. I only had a few so just cut and pasted, but you could export and import the contents of the table in PHPmyAdmin.

Do you need to have new articles also show up in the old site structure? Or can the old site stay static?

Offline

#3 2009-08-13 15:01:10

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Archive old version of website and keep it active...

Seems like you should be able to do what you’re looking for by making the old databases article table be a view or synonym of the new databases article table. Not sure if mysql can do that.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2009-08-13 15:09:52

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

Re: Archive old version of website and keep it active...

hi Les

I’m just wondering how appropriate it would be if you did what you plan.

  1. Google which considers subdomains as separate site, would penalise your site for duplicate content.
  2. you’d have to keep all installations current and search/replace all deprecated tags
  3. keep up with plugins
  4. etc

My suggestion would be to keep v1 in a separate database and continue your designs from there on.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB