Drupal

Phone field

drupal.org - Modules - Fri, 11/02/2018 - 04:48

The Phone field project provides a phone field for Drupal 7 that supports the HTML5 tel:-schema.

Categories: Drupal

User Menu Avatar

drupal.org - Modules - Fri, 11/02/2018 - 00:24

Drupal 8.x

User Menu Avatar Description:

This module replaces the "My account" link text with the user_picture or username if no user_picture exists. Currently only for the User Menu, future work is focused on including admin config to set menu/link placement.

Requirements:

1. user_picture field

If the user_picture field is not in your Drupal site you can do a single config import:

Categories: Drupal

Twig Suite

drupal.org - Modules - Fri, 11/02/2018 - 00:10

Twig Suite

Categories: Drupal

Field Union Construction Kit

drupal.org - Modules - Thu, 11/01/2018 - 21:47
Categories: Drupal

PreviousNext: Introducing Entity Access Audit module

drupal.org aggregator - Thu, 11/01/2018 - 20:32

As part of the session I presented in Drupal Europe, REST Ready: Auditing established Drupal 8 websites for use as a content hub, I presented a module called “Entity Access Audit”.

by Sam Becker / 2 November 2018

This has proved to be a useful tool for auditing our projects for unusual access scenarios as part of our standard go-live security checks or when opening sites up to additional mechanisms of content delivery, such as REST endpoints. Today this code has been released on Drupal.org: Entity Access Audit.

There are two primary interfaces for viewing access results, the overview screen and a detailed overview for each entity type. Here is a limited example of the whole-site overview showing a few of the entity types you might find in core or custom modules:

Here is a more detailed report for a single entity type:

The driving motivation behind these interfaces was being able to visually scan entity types and ensure that the access results align with our expectations. This has so far helped identify various bugs in custom and contributed code.

In order to conduct a thorough access test, the module uses a predefined set of dimensions and then uses a cartesian product of these dimensions to test every combination. The dimensions tested out of the box, where applicable to the given entity type are:

  • All bundles of an entity type.
  • If the current user is the entity owner or not.
  • The access operation: create, view, update, delete.
  • All the available roles.

It’s worth noting that these are only common factors used to determine access results, they are not comprehensive. If access was determined by other factors, there would be no visibility of this in the generated reports.

The module is certainly not a silver bullet for validating the security of Drupal 8 websites, but has proved to be a useful additional tool when conducting audits.

Tagged Entity Access
Categories: Drupal

Question/Answer field

drupal.org - Modules - Thu, 11/01/2018 - 17:26

The provides a new field type called Question, which can be used to add generic questions as a field.

The field can have a question, an answer type (checkbox, checkboxes, radios, select, number, or textfield), a default answer, and answer options (in the case of checkboxes, radios, and select).

There are two field formatters, one for displaying the question form and the other for displaying the question answers.

Categories: Drupal

Kanopi Studios: BADCamp 2018: Learning while having fun

drupal.org aggregator - Thu, 11/01/2018 - 16:26

 

BADCamp 2018 just wrapped up last Saturday. As usual it was a great volunteer organized event that brought together all sorts of folks from the Drupal Community.

Every year Kanopi provides organizational assistance, and this year was no exception. We had Kanopian volunteers working on; writing code for website, organizing fundraising, general operations planning, assisting as room monitors, and working the registration booth.

An event like this doesn’t happen without a lot of work across a lot of different areas and we’re very proud of Kanopi’s contributions.

Personally, Kanopi was able to send me down from Vancouver, Canada to spend time doing a day long training course, as well as doing the regular conference summits and sessions.

The course I chose was “Component-based Theming with Twig” which was really informative. We covered the basics Pattern Lab and then worked on best practice methods to integrate those Pattern Lab tools in to a Drupal theme.

Some of the takeaways:

  • The Gesso (https://www.drupal.org/project/gesso) theme is a great starting place for getting Pattern Lab in to your project.
  • Make sure you are reusing all your basic html components and make the templates flexible. Resist the urge to simply copy and paste markup into a new template.
  • The best way to map Pattern Lab components in Drupal is to use Paragraph types and their display modes.
  • To get the most out of Twig template, make sure you are using the module Twig Tweak (https://www.drupal.org/project/twig_tweak)

For the regular conference sessions, the most interest seemed to lie in the possibilities of GatsbyJS (https://www.gatsbyjs.org/). All the developers with whom I spoke are focused on the performance and security perspective, as it can be completely decoupled from Drupal, allowing for fewer security issues. One interesting talk on Gatsby was this one by Kyle Mathews.

Kanopi was also fortunate enough get four sessions selected:

All in all BADCamp 2018 was a great experience. It’s terrific to meet our distributed co-workers as well as see friends from other parts of the Drupal community.

The post BADCamp 2018: Learning while having fun appeared first on Kanopi Studios.

Categories: Drupal

Elevated Third: Connecting Drupal 8 with Salesforce

drupal.org aggregator - Thu, 11/01/2018 - 15:16
Connecting Drupal 8 with Salesforce Connecting Drupal 8 with Salesforce Judd Mercer Thu, 11/01/2018 - 13:16

As Drupal 8 has matured as an enterprise content management system, so has its ability to connect with enterprise SaaS CRMs such as Salesforce. As the undisputed IBM of CRM solutions (for now, anyway) Salesforce is a cornerstone for most businesses. And now with tighter integrations than ever before, Drupal 8 can be too.

With that, let's explore some key considerations involved in connecting Drupal 8 with Salesforce. 

All Hail the Cloud

At its most basic core, Salesforce is really a database of contacts in the same way that Drupal is a database of content. Yes, Drupal also has users and Salesforce often houses products, events, etc., but you get the idea. What’s important is that customers interact with both systems. Whether it’s reading website content or opening an email from a salesperson, customer data across all fronts is critical to consolidate, manage and leverage.

Integration is a Dirty Word

You may be wondering what’s involved with a Drupal integration with Salesforce. Ah, the dreaded “I” word...integration. So often the herald of scope creep and blown budgets. Integrating Salesforce with Drupal 8 can vary between something as simple as submitting contact forms to the CRM, to running a global ABM effort supported by a sophisticated Drupal website equipped with real-time personalization. In either case, leveraging Drupal 8’s API-first architecture and its plethora of open source modules are key. In this case, the Drupal Salesforce module is our starting point.

Modules Make the World Go Round

The Drupal Salesforce Suite module is a testament to both the ingenuity and passion of the Drupal community and the flexibility of Drupal as an enterprise platform. As a contributed module, the Salesforce Suite for Drupal enables out of the box connection with Salesforce, no matter your configuration.

Available free on drupal.org, the module offers:

  • Single Sign-On (SSO) with OAUTH2 authentication, which lets you pass credentials to Salesforce (and log in seamlessly. Salesforce events are also accessible through Drupal 8. Handy!

  • Entity mapping, which means tying fields in your Drupal site to those in Salesforce, such as “Markets” you serve for upcoming events or hidden user fields like “Lead Score.”

  • Ability to push data to Salesforce from Drupal, such as users engaging with gated content, new leads, or activity data to ensure Salesforce has all the information it needs to make decisions. This is critically important with AI advancements such as Salesforce Einstein.

  • Ability to pull data such as new products, syncing events, etc into Drupal. Often, this takes the form of rough data imports for critical fields (like product information) that site admins can add to using Drupal 8’s editing capabilities.

Take it to the Skies

While the Salesforce Suite module is a great start, any complex integration requires an experienced and competent Drupal development team to implement. Establishing an API connection is one thing, but building a Drupal 8 site to adapt to changing conditions on the Salesforce side is critical, as well as sound architecture on the Drupal 8 side to ensure data integrity and easy management for non-technical site admins.  
Looking to connect Drupal 8 with Salesforce? Contact us about your project and see how we can help.

Looking to tighten up your Salesforce integration?

We can help
Categories: Drupal

Important Information Block

drupal.org - Modules - Thu, 11/01/2018 - 14:28

This module has been created to enable users to display a section on their site which shows `Important information` to users.

This information could be: Updates to policies, safety information.

The block visibility can be configured from the Block Configuration page. It has been created with a simple-as-possible structure, and without making use of Javascript due to issues with Clientside Rendering which could affect automated tests running on sites with this module installed.

Configuration:

The following can be configured for the module:

Categories: Drupal

Pantheon site imported to Dev Desktop. How to clean it up?

Drupal - Open Source Content Platform - Thu, 11/01/2018 - 13:58

I imported an error-free site from my Pantheon development environment to Acquia Dev Desktop locally, using the git-cloned repo and the database .gz file from Pantheon.

Now in Dev Desktop I have these errors on my homepage:

"Notice: Undefined index: source in Drupal\views\Plugin\views\filter\FilterPluginBase->acceptExposedInput() (line 1389 of core\modules\views\src\Plugin\views\filter\FilterPluginBase.php)."....

https://i.redd.it/jgkkjm7rcrv11.png

This is my status report:

https://i.redd.it/frqq9zkvcrv11.png

And this is my file system settings page:

https://i.redd.it/ikwjgbbycrv11.png

Clearly I need to clean some stuff up, but I'm treading very carefully after a lot of painful recent Drupal tangles. I'm planning to start Composer-managing this project and pushing to the Pantheon dev environment with Git.

Questions:

  1. In particular the contents of my sites/default/files folder were not in the cloned repo from Pantheon. So should I FTP download those from Pantheon?
  2. If answer to question 1 is "yes", where should I put them, as now I have both "default" and "see-life.dd" folders in "sites" locally?
  3. Should I do a database update now?
  4. What else is essential to clean up the Dev Desktop site?
submitted by /u/Nick_Hope
[link] [comments]

Field Autovalue

drupal.org - Modules - Thu, 11/01/2018 - 12:26

Field Autovalue allows fields to be configured to have custom values generated automatically whenever the entities they belong to are saved.

It does so by exposing a plugin system which allows fields to be configured to use a specific plugin to generate the automatic value.

The module does not provide any plugins (except inside the test module).

Categories: Drupal

Phase2: Migrating to Drupal From Alternate Sources

drupal.org aggregator - Thu, 11/01/2018 - 12:05

Content migration is a topic with a lot of facets. We’ve already covered some important migration information on our blog:

Categories: Drupal

Paragraphs Report

drupal.org - Modules - Thu, 11/01/2018 - 10:56

The Paragraphs Report module will parse nodes of certain content types that you check on the settings page, and make a catalog of what paragraphs are used on which pages.

The use case for this report is when you want to know which pages a specific paragraph type is used.

Categories: Drupal

Drupal Dev Thursdays: Post here with development questions or discussion

Drupal - Open Source Content Platform - Thu, 11/01/2018 - 10:07

This is the weekly thread for development questions or chit-chat that doesn't belong in the Monday Beginner Questions thread. All questions/comments/ranting about Drupal dev is fair game.

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Drupal 8 Google Optimize Hide Page

drupal.org - Modules - Thu, 11/01/2018 - 09:45

Adds the Google Optimize page-hiding snippet to pages.
See https://developers.google.com/optimize/#the_page-hiding_snippet_code for Google's documentation.

Categories: Drupal

I have multiple taxonomy terms for a NID in a view with images on the terms, only first image showing though all terms present in text

Drupal - Open Source Content Platform - Thu, 11/01/2018 - 09:44

Hello r/drupal !

We have a menu on our main website, we have multiple taxonomy terms referenced on the food items. I can get all of the terms to show up as text, but when I add the term image (which is a field on the term itself), using the taxonomy relationship under the advanced setting in the view, only the first image from the first term is present.

Originally the multiple terms were causing repeat nodes populating the views, so I used the views distinct module to make the title of the node distinct since the typical distinct settings had no effect on reducing the duplicates.

Any advice is welcome!

submitted by /u/maddog330
[link] [comments]

noob question re: templating, drupal 7.

Drupal - Open Source Content Platform - Thu, 11/01/2018 - 09:10

I'm looking at a file called "home.inc" in a theme folder, and it has this line of code:

<?php print render($page["sidebar_calendar"]); ?>

I have no idea where $page is declared, nor where "sidebar_calendar" can be found in Drupal admin. Any hints?

submitted by /u/smittychifi
[link] [comments]

Mailchimp Panels

drupal.org - Modules - Thu, 11/01/2018 - 06:35

Panels integration module for MailChimp.

This module helps to configure MailChimp sign up forms within panel panes.

Categories: Drupal

Pages