Drupal integration with another Drupal DB? - drupal

I have two Drupal sites. Let's call them Site A and Site B.
Site A is a site where users can post ITEMS. So I have a content type called ITEM. Site B is a client's site. I want to be able to display the ITEMS from Site A on Site B. I don't want to have to import the content. Both sites are on the same server. I want the items that show on Site B to be the exact items from Site A. In fact, it would be amazing if:
The items show in the content list
The user can edit content from Site A via Site B.
So my questions are:
Is there a module that can do this?
If not, is this a feasible way to go about it and should I start development myself?
Is importing and exporting the only route to go? (and then disabling the editing of those content types)
Thanks in advance.

Sounds like you should use domain module. I have only used it with subdomains, but it should be able to handle different tld as well.

You can use feedapi and feedapi mapper to sync nodes on site A and site B.

Related

Multiple subdomain contexts for drupal

The project I am working on wants to split up the site into regions via subdomains, for example:
usa.domain
za.domain
ke.domain
Each subdomain would have it's own content (news, about, etc), and then the main domain site would show content (news) from all the sub domains.
What would be the best way to achieve this using Drupal? Would I be able to use Drupal 8 for this?
I managed to figure it out.
I ended up installing the Domain Module which works exactly as I expected a solution like this to work.
Once you have it installed, and set up a few domain records in the configuration adding content to specific domains is as simple as clicking a checkbox.
A cool note is that the menu structure plays along nicely with this module too, although that might just be clever Drupal.
I used Drupal 8 and even though this module doesn't have an official release yet, it works perfectly.

How to map multiple domains to a WordPress (single install) site woring as SAAS?

My question is quite similar to this question. However my concerns are not fully answered there, so I am posting a separate question.
I will try to be as detailed as possible here.
I have to build a website (SAAS), say abc.com wherein registered users would get a subdomain on the website, like abc.com/def or pqr.abc.com.
Now some of those users might want to have their own domains in use. for eg. 123.com or xyz.com.
All of these websites need to have identical backend (dashboard). But most importantly a visitor should be able to type a search term on the main website (abc.com), and the search should contain results from ALL websites including the subdomains (abc.com/def or pqr.abc.com) and custom domains (xyz.com).
I am not versed with other frameworks, so I figured out that WordPress could be a good solution.
My approach was that every registered user would be assigned role of an author, with them being able to create/edit their own content. I would then add custom post type for the exact type of content they can add. I would then use dashboard customizing plugins (like Adminimize) to configure what admin menus can the editors see. THis way I would be able to define/force the fields they can use for adding content, and I can also restrict the custom taxonomoies and terms they can use. And also be able to search through the content created by any user.
The only issue here is to create domains for the users.
The I heard of domain mapping. So, is it possible that map domains like xyz.com to abc.com in such a way that whenever a user types 123.com (or xyz.com) in address-bar, they are served the content of abc.com, but still see 123.com (or xyz.com) in their address bar.
I believe this is called masked domain forwarding. I tried a bit of it, and succeeded partially in that whenever a visitor types 123.com (or xyz.com) in address-bar, they are served the content of abc.com, but still see 123.com (or xyz.com) in their address bar. The problem is that whenever users type 123.com/wp-admin/ then instead of getting to the login screen, they see blank screen.
Not sure if the setup is corret, or if it is even acievable using WordPress.
Another alternative could be using WordPress multisite. But it has limitations for my caase:
1. Search across all sites in network is going to be a very expensive operation
2. I would not be able to force identical terms of custom taxonomies across all sites. I can create the taxonmies and terms using code and put it in a plugin and network activate it. It would work for new terms. But when I decide to delete/edit a term, I will have to login to each site's dashboard to sync the terms.
So, is there a way with WordPress to achieve what i am trying to do :custom domain names and identical dashboards, that can be controlled/dictated by admin (me) , and the facility to search through all the sites/domains.
If not with WordPress, then is there any other framework with which I can do this?

How to link 2 wordpress websites

Is there any way or pluggin to link 2 wordpress websites together which means when i publish a post in the first site, the second one publish the same post automatically.
notice that 2 sites on the same host.
thanks in advance.
I have looked into this few months ago for a project which one of the requirements was to automatically duplicate posts between Wordpress sites, short answer is yes, but out of the box you can't.
Long answer:
Yes, you can have three different scenarios:
You can clone posts manually through different blogs sitting in a multi-site installation using the Multisite Post Duplicator plugin, this however requires you to move both websites within a single installation of wordpress and make them run into multi-site mode. Also, you will need to manually duplicate them.
You can install on the second website a WPAuto plugin (there are few options out there, so I am not going to link every single one) which allows you to import automatically some RSS feeds into your second website. However RSS feeds must be enabled on the first website to make these plugin fetch correctly the content, on top of that the content won't be created instantly but it will be fetched after a certain amount of time, (5/10 mins interval, maybe more, according to the plugin and host settings)
You can develop something custom, you can open up a REST endpoint on the second website and through the Wordpress APIs create programmatically a new post for each request received. On the First website you need to hook your Publish post function to send the data across to the second website to process it. As far as I am aware there are no plugins which does that so you'll have to do something on your own, requires a bit of time and you need to keep in considerations all the security implications in doing that.
Needless to say that I strongly hope you have access to both websites and the content you are trying to clone is yours or you have been authorized to republish it from the original author.

Managing 2 websites from 1 admin panel

Is it possible to control 2 different Drupal website from 1 admin panel? 2 different domain, but on same host-server.
one of my client came up with the idea and I wasn't sure if it can be done.
Appreciate advices! Thanks a lot!
If you're just trying to have two domains point to the same Drupal installation (e.g. http://example.com/ and http://example2.com point to the same Example Drupal website), this is supported out of the box as long as you don't use a multisite setup.
That is, normally, you'd just stick your settings.php file in sites/default/. If you did that, any domain that's pointed to the Drupal directory will use the same Drupal site. You don't need to do anything else.
If you've stuck your site in sites/example.com, you could create a symbolic link with the name of the other domain; i.e. you'd have sites/example.com and a symbolic link to it called sites/example2.com.
If you're trying to run two disparate sites through the same admin panel, you can't do it per se: that is, you can't manage most aspects of Drupal through its default administration system because it's not designed to do that.
However, if you're trying to simulate something like Plesk or Cpanel—that is, you just want to easily manage Drupal deployments using one control panel—there is a project under heavy development called Aegir. I've used it on a few different occasions and it works pretty great, but it's a somewhat involved setup process.
With http://drupal.org/project/domain you can simulate two websites. Is not actually two different Drupal installation.
You can take a look http://drupal.org/node/346385 for more information about the different multi-site options.
No, not that I am aware. As well as the content, all the administration aspects of the site are stored in the site's database, so the admin area and the front end of the site are joined at the hip! 1 database per site, so 1 admin area per site.
There is Aegir http://www.aegirproject.org which is a multi-site manager dashboard system. It's more for creating and managing the site than for managing content, but it might be what you're looking for.

Display Drupal content outside Drupal?

Is it possible to use Drupal to feed a few dynamic portions of a mostly static website? We have a plain old website and are looking to create a sibling site just for web-app stuff (private CMS, databasing, some forms for specific things, etc.). Some of the content we create on the sibling site (which would be Drupal), we'd like to render in areas on the primary site (non-Drupal). An example might be a news feed generator that displays on the primary site, but is actually fed from content created in the secondary site's interface. Another potential workflow might be a Drupal installation that's located in a subdirectory of a mostly static website. A general login link could redirect users to the drupal area, but could we get any of the content they create outside of that, modularly, so we can keep our nice rigid site design? I guess I'm looking to harness Drupal as more of a framework than a CMS.
Is any of this possible? Is this even a logical concept, or am I stupid for asking?
Thanks for any suggestions.
It is possible you could implement a custom callbacks which are accessed via Jquery on your old site.
However....
Why would you do this, Drupal is a CMS for websites, if you have a static website, no matter how big it won't be too dificult to put it into drupal and look the same, even have the same URLs. You then get Drupal goodness wherever and whenever you want very easily.
You can always access your Drupal database in your external site to display whatever Drupal content you want.
You could build RSS feeds with Views and put a simple feed parser into your static site. But again, if you want more than simple RSS syndication, you are better off planning a migration path than partial Drupal integration.

Resources