Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-09-15 08:39:19
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
one database, multiply installations
there’s only one database in server to use and 2 other applications (not textpatterns) already using it. is it totally safe to install the textpattern additionally there
Offline
Re: one database, multiply installations
Yes. So long as you prefix the Txp tables (e.g., “txp_”) you should be fine.
Offline
#3 2008-09-15 11:34:13
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: one database, multiply installations
Destry wrote:
Yes. So long as you prefix the Txp tables (e.g., “txp_”) you should be fine.
clear. and if i want to install two or more txp-s into one database i have to write additional prefix (e.g. “new_”) into table prefix field on installation, right?
Offline
Re: one database, multiply installations
Correct. You can have many installations, but each must have a unique prefix on its set of tables at time of installation.
Offline
#5 2008-09-16 14:01:50
- brunodario
- Member
- From: Belo Horizonte, Brasil
- Registered: 2007-09-19
- Posts: 75
Re: one database, multiply installations
This is what i´m working in and i want to know what´s the best way to doing it:
This company i´m building a website for has two “areas”. Let´s say:
www.company.com/area1
and
www.company.com/area2
It´s ok to install textpattern into “area1” folder and “area2” folder (two installations on diferent folders) on the same database and then manually create an splash intro page? Is there anything different from a “root” installation that has to be done in this particular case?
Thx in advanve ;-)
Last edited by brunodario (2008-09-16 14:03:25)
Offline
#6 2008-09-16 15:14:30
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: one database, multiply installations
That’s possible, but is it really necessary? If the only reason is you need a splash page, there are other ways to achieve that.
Offline
#7 2008-09-16 15:43:12
- brunodario
- Member
- From: Belo Horizonte, Brasil
- Registered: 2007-09-19
- Posts: 75
Re: one database, multiply installations
Els, thx for your reply.
No that´s not necessary. In fact, i´m searching the forum trying to find a better solution. The issue here is that “area1” wich is about cleaning services will demand a complete diferent design that “area2” wich is security services.
What i though is that i can have some troubles with only one install when i try, i.e, create a “contact” section that will be different for both “areas”.
www.company.com/security/contact and www.company.com/cleaning/contact looks fine to me
Can you guide me through a better way to activate this?
Offline
Re: one database, multiply installations
Bruno,
It seems to me you have a single web site (company.com) with two sections (security and cleaning) needing different designs/styling. If that’s right so far then you certainly don’t need two installations, in fact that would be silly. You can use a single installation to give the impression of two different sections and style them differently as you need.
The next issue, seemingly, is your contact form, and it sounds like all you need is a dropdown control in your contact form that allows users to select which department they need to contact? This would be one straight forward approach. (Though what happens if a user selects the wrong department and sends? What’s your backup in this case? Does the company do internal transfer/communication between departments, or do you add a verification message at time of form submission to say something like “You selected department “x”, is this correct?” )
I have not yet converted to zem_contact_reborn, so I don’t know all the whiz bang there yet, thus I can’t say if it provides a dropdown destination option menu, but I can’t imagine it would be a hard thing to do. You could certainly add the control manually and it should be fine.
Maybe one of the plugin’s contributors or power users will clarify.
Last edited by Destry (2008-09-18 11:56:41)
Offline
#9 2008-09-18 15:18:30
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: one database, multiply installations
I think ‘contact’ in this scenario wouldn’t need to be a section, it can be an article, or rather two articles, one in each section. You can use two instances of zem_contact_reborn, so mails wouldn’t be sent to the wrong department.
Offline
Pages: 1