How To Build Microsites In Drupal Using Groups Module?

How To Build Microsites In Drupal Using Groups Module?

Drupal microsites

There may be situations in which you do not want specific pages of your website to have the same appearance as the other pages. It’s possible that you’d prefer a different theme, a different menu, or an entirely other layout. When this occurs, you will want to start developing micro-sites. Micro-sites are smaller websites that can either function as subsets of your primary website or have their own distinct domains and subdomains. Micro-site marketing is an excellent method for promoting targeted marketing campaigns and is typically utilized for specific marketing campaigns, events, or items.

Using the Group module in Drupal 8 (and 9, for that matter), you can construct micro-sites within your existing configuration. Within the confines of that configuration, you are able to have a distinct group of users, permissions, and pages. Let’s find out more about this incredible module and how you can use the Group module to create micro-sites in this lesson.

Making miniature websites with the help of Drupal’s Group module

The most recent iteration of the Group module for Drupal was made available in version 8.8 of the content management system, and it is also compatible with Drupal 9. It makes it possible for you to construct discrete groupings of content and users on your Drupal website with this module. Access control can also be configured for these collections if desired. The Group module is not only helpful for the building of micro-sites, but it can also be used whenever a site wishes to publish content that only members of specific user groups should be able to access. This functionality makes the Group module extremely versatile.

Installing the Group Module

Installing the Group module for Drupal 8 (or 9) can be accomplished by following the instructions outlined below.

Step 1: Install the module by making use of this command. composer require ‘drupal/group’

Step 2: Turn on the modules for the Group and the Group Node.

Working with the module

After the module has been successfully installed, the Groups option will become available in the administrator menu.

Groups

You will need to make a new Group type in the Groups section for each of your micro-sites. Group kinds are essentially different classifications of divisions that can be used on your website. In this particular instance, the group-type in question is a Micro-site.

Group-Type

After you have added the group type to your micro-site, you are able to add fields. You will find an additional Content tab, as well as Roles and Permissions tabs in this group type.

Add-field

You can see a content tab in the image that is displayed above, and by clicking on it, you will be able to add content kinds to your micro-site. These are content types that we have developed for our primary website.

Configure-contents

You also have the ability to create distinct roles for the micro-sites at this time.

Group-roles

After you have added a distinct role to the micro-site, you can add permissions to that position by clicking on the Edit permissions button. You have the ability to customize the permissions to suit your needs.

Group-Role-Permissions

Following that, you will see a tab labeled “Permissions.” This is the section of the interface where you may assign permissions to anonymous users and other micro site members. Following the completion of the configuration for your group type, you are now able to add the group to that specific group type.

Group-type-permissions

In addition to View, Edit, and Delete, you will now see a large number of extra tabs when you are editing your group.

Edit-micro-sites

Now, navigate to the Members tab, where you will find a button that allows you to add people to the group. These are the members of the group who possess the authority to carry out certain tasks within the context of this particular group.

Micro-site-member

 

 (It is important to note that admin will automatically be added as a member of the group. In the setup for the group type, you have the option to disable this functionality.)

Micro-site-nodes

To add material to the group, select the Nodes tab from the menu.

Every single entity: This provides a list of every node and user in that particular group that is a member of that particular group.

Micro-site-entities

Adding menus to Micro-sites

Utilizing this command to install the Group Content Menu, enable the module afterward.

composer require ‘drupal/group_content_menu’

Following the installation of this module, the Group Content Menu types will be visible under the Structure heading. Make sure your microsite has some sort of group content menu type.

Group-menu-type

Put this menu type in the block layout at the location where you want it to be displayed.

Custom-block

Set up the block so that it can be displayed in the micro site.

Configure-block

You should now see the Group menu when you click on the group type content tab. You will need to install it so that your microsite can display menus.

group-menu

You should now be able to see the group menu within the groups you belong to.

group-menus

When using group menu, you will be prompted to give the Menu set a name.

site-menu

You are now able to add menus after you have added the menu set.

Add-Link

Micro

Now please delete all of your cached data and check in with the group. The menu will be displayed at the location that you have selected for it within the block layout.

Micro-site-description

Conclusion

Making use of micro-sites is a fantastic method for your brand to develop multiple distinct personas. It is a potent way of advertising that is currently being applied by a wide variety of firms all over the world in a variety of different contexts. A terrific module called the Group module is available for use with Drupal, and it assists organizations in effectively building micro-sites. 

Moreover, if you are looking for a Drupal development company to assist you with your project maintenance, you should check out Appic Softwares. We have an experienced team of developers that has previously worked across various industries and on several complicated projects.

You can even hire a dedicated Drupal developer from us and manage your project.

So, what are you waiting for?

Connect with us now!

Get Free Consultation Now!


    Our Engagment Model

    •   Hourly Hiring

    •   Fixed Hiring

    •   Dedicated Team

    Contact Us

    Consult us today to develop your application.

      Get in touch with us


      Skype Whatsapp Gmail Phone