Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Targets

Security covered
View on drupal.org

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.1.6 Stable Jul 3, 2023
1.1.5 Stable May 11, 2023
1.1.x-dev Dev May 11, 2023