Overview

This is an easy way to split a content for a specific group of site visitors. This module will split your site by a specific url prefix after installation and configuration. You can create multiple targets e.g. Private accessible on example.com/en/private and Professional accessible on example.com/en/professional.

Here is a couple of simple examples:

  • Contact us page can contain different content per a target
  • About page can be available only for one of the target e.g. Professional target example.com/en/professional/about
  • Home page can have different layout and content per a target
  • Site navigation can contains different links, some of them can be available for all targets

Technical background

A target is a config entity with different configuration + url prefix and target link can be translated.

Here is a list of content that can be separated by target:

  • Node <-- by targets field
  • Menu link content <-- by targets field
  • Block content <-- by custom condition plugin
  • Page variant from page manager <-- by custom condition plugin
  • Views <-- by custom views filter

There is also integration with Simple XML sitemap, so all links in XML use a target prefix.

Installation

After installing the module you will need to set up targets for your site, by default all content is available for all targets. Next step will be to display a Target block to let users easily switch between targets (it looks like a language switcher).

Now you can just set up proper filters and create/update content for your site.
Enjoy it

Documentation

Follow this documentation https://www.drupal.org/docs/contributed-modules/targets

Suitable for editors and developers.

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: Site Structure
  • chart icon5 sites report using this module
  • Created by nginex on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases