Morpht: Announcing Enforce Profile Field for Drupal maintenance support plans 8

The Enforce Profile Field is a new module which allows editors to enforce the completion of one or more fields in order to access content on a site. It is now available for Drupal maintenance support plans 8.

Sometimes you need to collect a variety of profile data for different users. The data may be needed for regulatory compliance or marketing reasons. In some cases you need a single field and in others it may be several. You may also wish to collect the information when a user access certain parts of the site.

The Enforce Profile Field module comes to the rescue in cases such as these, forcing users to complete their profile before being able to move onto the page they want to see. This may sound harsh, however, collecting data as you need it is a more subtle way of collecting data than enforcing it all at registration time.

The implementation consists mainly from a new Field Type called “Enforce profile” and hook_entity_view_alter().

The module works as follows

Site builder defines a “form display” for the user type bundle and specify fields associated with it to collect data.
The fields should not be required, as this allows the user to skip them on registration and profile editing.
In addition the Form Mode Manager module can be used to display the “form display” as a “tab” on a user profile page.

The site builder places an Enforce profile field onto an entity type bundle, such as a node article or page.
The Enforce profile field requires some settings:
A “User’s form mode” to be utilized for additional field information extraction (created in the first step).
An “Enforced view modes” that require some profile data to be filled in before being able to access them. You should usually select the “Full content” view mode and rather not include view modes like “Teaser” or “Search”.

The editor creates content, an article or page, and can then select which fields need to be enforced.
The editor is provided with multi-select of “User’s form mode” fields.
Selecting nothing is equal to no access change, no profile data enforcement.

A new user navigates to the content and is redirected to the profile tab and is informed that they need to complete the fields.
Fields are completed, form submitted and the user redirected back to the content.
In case the user doesn’t provide all enforced fields, the profile tab is displayed again with the message what fields need to be filled in.

Why to use the Enforce Profile Field to collect an additional profile data?

You may need customer’s information to generate a coupon or access token.
You may just want to know better with whom you share information.
Your users know exactly what content requires their additional profile data input rather than satisfying a wide range of requirements during registration. It just makes it easier for them.
The new profile data can be synced to a CRM or other system if required to.
Let us know what you think.
 
Source: New feed

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Morpht: Announcing Enforce Profile Field for Drupal maintenance support plans 8

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.