Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 658569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:56:54+00:00 2026-05-13T22:56:54+00:00

I have 2 websites with similar content types. Let’s say an event-content type with

  • 0

I have 2 websites with similar content types.

Let’s say an event-content type with some cck fields in it.

site1: events ( title, body, image )
site2: events ( title, body, image, onsite1)

by the extra field at site2-events i want to give the possibility to the user to post his event on the ( main ) site1.

Site1 and site2 are both on 1 database, although tables from site2 are prefixed.

How can i add content made from site2 to site1?
( Is there an easy way to do this without resorting to sql? I am using the nodeapi at this time to do some extra when an event is submitted. )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:56:54+00:00Added an answer on May 13, 2026 at 10:56 pm

    Since you say you’re already using hook_nodeapi it seems like you could just do:

    if ($op == 'insert' && (see if checkbox is checked here))
    

    …then switch to the other site’s database, do a node_save, and switch back to the current site’s database to let Drupal finish its business.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two websites, let's say they're example.com and anotherexample.net . On anotherexample.net/page.html ,
I have two similar wordpress websites. http://site.com/ and http://site.com/en/ When I try to load
Lets say that you have websites www.xyz.com and www.abc.com. Lets say that a user
Some websites have code to break out of IFRAME enclosures, meaning that if a
I've seen some similar posts, but nothing quite like this... I have a website
I am a PHP beginner. I have developed a social networking website similar to
Many websites have the concept of sending messages from user to user. When you
Many websites have very good looking pop-up window. For example checkout http://www.myntra.com and when
We have several websites on different domains and I'd like to be able to
I have 10 websites on an IP. I would like to share the IP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.