-
Notifications
You must be signed in to change notification settings - Fork 302
DOCSP-39181: drupal integration page #1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
.. _php-drupal-integration: | ||
|
||
========================== | ||
Drupal MongoDB Integration | ||
========================== | ||
|
||
.. facet:: | ||
:name: genre | ||
:values: tutorial | ||
|
||
.. meta:: | ||
:keywords: php framework, CMS, web app, authentication, Atlas | ||
|
||
.. contents:: On this page | ||
:local: | ||
:backlinks: none | ||
:depth: 2 | ||
:class: singlecol | ||
|
||
Overview | ||
-------- | ||
|
||
In this guide, you can learn about the benefits of using MongoDB Atlas | ||
as the database for Drupal sites and navigate to a tutorial that | ||
demonstrates how to set up the MongoDB driver for Drupal. | ||
rustagir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
`Drupal <https://www.drupal.org/about>`__ is an open-source web content | ||
management system (CMS) written in PHP. Drupal provides simple content | ||
authoring, composability, and robust authentication features. | ||
|
||
The :ref:`php-drupal-tutorial` section of this guide links to a tutorial | ||
which you can follow to set up a Drupal site that connects to MongoDB Atlas. | ||
rustagir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
The :ref:`php-drupal-resources` section contains links to resources and | ||
documentation for further learning. | ||
|
||
Why Use MongoDB as the Database for Drupal Sites? | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Websites that seek to provide personalized user experiences must contain | ||
robust capabilities for user authentication. Sites that have many | ||
authenticated users might face performance impacts due to the complexity | ||
of retrieving entity data from multiple tables in a relational database. | ||
MongoDB supports eliminates the need for complicated table joins and | ||
rustagir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
thus increases data retrieval speed, enhancing user experience with | ||
components such as personalized dashboards and dynamic content feeds. | ||
|
||
When you use MongoDB Atlas as your site's database, Drupal stores entity | ||
instances as JSON objects that contain all revisions, translations, and | ||
field data. This flexible data structure decreases latency and allows | ||
Drupal to support personalized, user-focused experiences. | ||
|
||
MongoDB offers the following features that improve your Drupal sites: | ||
|
||
- Horizontal scaling: Distribute loads across multiple | ||
servers, making your database scalable for large user bases. | ||
|
||
- Integrated file storage: Store user files directly in the | ||
database instead of on the web server, simplifying hosting. | ||
|
||
- Full-Text search: Avoid implementing separate search | ||
rustagir marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
solutions by leveraging the :atlas:`Atlas Search | ||
</atlas-search/atlas-search-overview/>` feature. | ||
|
||
- AI capabilities: Perform vector searches and integrate AI services by | ||
using the :atlas:`Atlas Vector Search | ||
</atlas-vector-search/vector-search-overview/>` feature. | ||
|
||
.. _php-drupal-tutorial: | ||
|
||
Tutorial | ||
-------- | ||
|
||
To learn how to install the MongoDB driver for Drupal and set up a site | ||
that uses MongoDB Atlas as its database, see the | ||
`How to Run Drupal on MongoDB <https://dev.to/mongodb/how-to-install-drupal-on-mongodb-atlas-2dg3>`__ | ||
tutorial on the DEV Community website. | ||
|
||
This tutorial demonstrates how to perform the following steps: | ||
|
||
1. Setting up a MongoDB Atlas account and deployment. | ||
|
||
#. Setting up an AWS EC2 medium instance. | ||
|
||
#. Connecting the EC2 instance to Atlas. | ||
|
||
#. Installing the following components: | ||
|
||
- Apache web server | ||
- `MongoDB PHP extension <https://php.net/mongodb>`__ | ||
- Drupal web server | ||
- Drupal core patch | ||
|
||
#. Connecting your Drupal site to Atlas. | ||
|
||
#. Adding content to Drupal and viewing how it is stored in Atlas. | ||
|
||
#. Safely shutting down your web server. | ||
|
||
.. _php-drupal-resources: | ||
|
||
Resources | ||
--------- | ||
|
||
Learn more about Drupal and MongoDB by viewing the following resources: | ||
|
||
- `MongoDB module suite for Drupal <https://www.drupal.org/project/mongodb>`__ | ||
- `Drupal CMS User Guide <https://new.drupal.org/docs/drupal-cms>`__ | ||
- :website:`Podcast: PHP, Drupal and MongoDB with David Bekker | ||
</developer/podcasts/ep-185-php-drupal-and-mongodb-with-david-bekker/>` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.