Drupal

Commerce Klarna Payments

New Drupal Modules - 18 July 2018 - 2:28am
Categories: Drupal

ZONTestModule

New Drupal Modules - 18 July 2018 - 1:58am
Categories: Drupal

ICI World of Journals submit

New Drupal Modules - 18 July 2018 - 1:49am

The ICI World of Journals is one of the largest international databases of scientific journals from all over the world, where all periodicals may be indexed. Currently, over 43 thousand journals are registered in the database. Due to the high interest of journals from all over the world in our database, they have introduced improvements and functions aiming at detecting ‘predatory journals’ practices. The idea behind the ICI World of Journals database is creating a place where scientific journals would undergo such verification.

Categories: Drupal

jsgallery

New Drupal Modules - 17 July 2018 - 9:20pm
Categories: Drupal

Agiledrop.com Blog: AGILEDROP: Drupal events in 3th quarter of the year

Planet Drupal - 17 July 2018 - 5:09pm
We've made a list of Drupal camps and summits that you can attend in the third quarter of the year. Drupal events are bringing together Drupal developers, site builders, themers, end users and those interested in learning more about Drupal. We are attending Drupal events because of sessions and collaborative discussions.   DrupalCamp LA 2018 The United States, Irvine, CA School of Engineering of the University of California 21-22. July 2018 DrupalCamp LA is an unconference-style Drupal training. They are planning to have 5 sessions proposed by community volunteers and BoFs. Sessions are… READ MORE
Categories: Drupal

Tandem's Drupal Blog: Changing a Content Type Name During a Drupal 8 Migration

Planet Drupal - 17 July 2018 - 5:00pm
July 18, 2018 Changing a content type machine name during a Drupal Migration requires a little bit of migration knowledge, but is fairly straight forward to do. The Use Case It is a typical occurrence when a Drupal site has its content types named one way when it is built. Then, later on it is changed to better reflect what that type currently ...
Categories: Drupal

CiviCRM Subtype Roles Sync

New Drupal Modules - 17 July 2018 - 11:54am

This module automatically syncs your Drupal users' role to a given CiviCRM contact subtype. So you can have for example a user role for "staff" and a CiviCRM contact subtype for a "staff" individual. When you assign the selected role to a user, it automatically gives the associated contact the chosen subtype.

This is a very simple module and doesn't do more than that. It doesn't remove the subtype if the role gets removed.

This module was developed thanks to PeaceWorks Technology Solutions.

Categories: Drupal

View in Browser

New Drupal Modules - 17 July 2018 - 11:39am
Categories: Drupal

Alt Generator

New Drupal Modules - 17 July 2018 - 11:15am

Automatically generates alt tags in the media edit screen for alternative-text-less images using Microsoft's Computer Vision API. Useful if you've recently imported a bunch of non-alt-tag-wielding images into a site.

Categories: Drupal

Single Page Application Landing Page

New Drupal Modules - 17 July 2018 - 10:44am

This module provides a way for site managers to configure and serve single-page applications as pages in a Drupal site.

This approach has been described as “Progressively Decoupled” - see https://dri.es/how-to-decouple-drupal-in-2018

The module defines an App Landing Page content type.

The standard view mode for these nodes would be the landing page for each app.

A separate view mode would provide a JSON endpoint for configuration and text, to be consumed by the app.

Categories: Drupal

mark.ie: Getting Value (URI) of a Drupal Media (File) Field from within a Twig Template

Planet Drupal - 17 July 2018 - 9:07am
Getting Value (URI) of a Drupal Media (File) Field from within a Twig Template

To the future or to the past, to a time when thought is free, to the next time when I need to get the value of file field to use as a variable in Drupal 8 with Twig.

markconroy Tue, 07/17/2018 - 17:07

Working my way down through one of Drupal's render arrays of doom to try to get the URI of a file in a media field (in a paragraph type), I came up with this. If you can improve it, feel free to drop a note in the comments:

{% set slide_url = file_url(content.field_p_ei_speaker_slides[0]['#media'].field_m_file_file.entity.uri.value) %}

In steps:

  1. Get the {{ content }} variable
  2. Drill down into the media field (Speaker Slides - pdf, ppt, etc)
  3. Get the first element (0 - it's not a multi-value field in this case)
  4. Load up the #media object
  5. Interrogate the field on the media entity that has the file attached (the File field)
  6. Load this entity (entity here is not presented as an item in the {{ dpm() }} but it's very handy to know
  7. Get the uri.value from here
  8. Wrap it all in a file_url() function

For clarity, here's what I had in PatternLab:

  {# Begin Slides Download #}
  {% if event_slide_download %}
   
     
        {% include '@basic-elements/icons/_svg.twig'
          with {
            svgpath : '@basic-elements/icons/svg/download.svg'
          }
        %}
     

   
  {% endif %}
  {# End Slides Download #}

And here's what I have in the corresponding Drupal paragraph.html.twig tempate:

{% if paragraph.field_p_ei_speaker_slides.value %}
  {% set event_slide_download = true %}
  {% set slide_url = file_url(content.field_p_ei_speaker_slides[0]['#media'].field_m_file_file.entity.uri.value) %}
  {% set event_slide_download_link = slide_url %}
{% endif %}

{% include "@building-blocks/event-section/event-item.twig" %}

So now, my future self, you will know where to find this next time.

Categories: Drupal

Operations field

New Drupal Modules - 17 July 2018 - 8:09am

Adds a new base field to all content entities for displaying the list of entity operations.

This field can render the operations links in a display mode or in a view.

Categories: Drupal

Phase2: Decoupled Drupal 8 + GatsbyJS: a quickstart guide

Planet Drupal - 17 July 2018 - 8:07am

If you're not familiar with GatsbyJS, then you owe it to yourself to check it out. It's an up and coming static site generator with React and GraphQL baked in, and it prides itself on being really easy to integrate with common CMS'es like Drupal.

Categories: Drupal

MyFirstProject

New Drupal Modules - 17 July 2018 - 7:06am

Drupal
Drupal-wordmark.svg
Drupal 8 quickedit.png
Drupal 8 in action. Showing in-context editing and previews (WYSIWYG).
Original author(s) Dries Buytaert
Initial release May 18, 2000; 18 years ago[1]
Stable release
8.5.4[2] / 2018-06-06[±]
Repository
http://cgit.drupalcode.org/drupal
Edit this at Wikidata
Written in PHP, using Symfony
Operating system Unix-like, Windows
Platform Cross-platform
Size 80 MB (uncompressed Drupal 8 core)[3]

Categories: Drupal

OpenSense Labs: Approach your Mobile-First Design with This Guide

Planet Drupal - 17 July 2018 - 6:51am
Approach your Mobile-First Design with This Guide Harshit Tue, 07/17/2018 - 19:21

It’s always a battle when planning a website design. Your end goals, target audience, content, user experience, everything must align. It’s like a cloud of thoughts right inside your team’s head. It’s critical to optimize your website experience for the devices your audience is or will be using. 

Emarketer forecasts, approximately 83% of internet users will use a mobile phone to go online by 2021. 

Since now that we’ve established the fact that mobile is where the future lies, a mobile-first redesign is a way to go. We’ll dive into what a mobile-first approach entails, including tips for creating a seamless experience for visitors from mobile devices. 

In 2018, it is critical to analyze what’s the right way to go about it. 

1. Shoot for the least 

Without compromising the functionalities, it is definitely a challenge to pull everything into such a limited real estate. The difference in the screen space of various devices should tell you the varied approach to design. 

Minimalism begins by removing every element one by one.

After listing down all the elements, prioritizing is key. Sort out the cruciality of every element and how would they hierarchically sit in the interface. This should be in a way that the most important elements are displayed prominently. 

If after this exercise there’s still space for more, carefully add some elements in order of importance without overdoing it. Doing this would make sure every inch is utilised to the fullest. 

Content Repository 

The approach to this should be by drafting a document or a spreadsheet containing all the content elements you want the interface to entail. 

List down the page titles, navigation titles and be open to comments from peers. An example is given below:

An example of a content repository2. Analyse the Important Interaction Points

Comparing smartphones from 2008 to the ones in 2018,  a lot has changed since then. The user experience is no more frustrating. Earlier you had to touch the exact alphabet in the keyboard now the smart devices can read your movement through sensors. Keyboards differ according to the smartphone size, button space and overall sensitivity. And so your mobile design should be approached in the same manner. 

Unfortunately, many websites are still lagging behind when it comes to the user experience which leads to weak engagement, poor sessions and doubled bounce rates. 
Make sure the important elements are not missed. 

This includes: 

  • Make button more clickable
  • Make CTAs more appealing and responsive
  • Choose the right color combination for the user to read on the sunny noon
  • Give hyperlinks plenty of space
  • Keep the tabs in the drop down manner
Good vs Bad UX design The number of mobile phone users in the world is expected to pass the five billion mark by 2019, according to Statista.  3. Optimize Your Images

When it comes to loading size, images make up nearly 64% of an average web page. Outlining the “why”, it is now important to know how you can optimize your images to deliver an optimum and engaging experience to your user, without hogging on those extra kilobytes of data. 

Hacks to Optimize Images
  • Use correct image dimensions for faster loading
  • Use the correct image format. JPEG image would be a lot lighter than the PNG.
  • Compress your image with lossless compression
  • Use Lazy loader to keep the user engaged
4. Content is all that matters

Devising content around mobile is time-consuming as it requires due thinking and goes through numerous iterations along the course of finalizing the content itself. 

Taking the limited space aside for a while, there are more added difficulties when it comes to mobile web development. 

There comes screen rotation, device to device compatibility, text and image overlaps and what not. These factors have everything to make your content look very less appealing. What do you do for cutting these hurdles off? 

Think from an app perspective

Mobile users are accustomed to motion and a modicum of control in their experience. Think about off-canvas navigation, expandable widgets, AJAX calls, or other elements on the screen with which users can interact without refreshing the page. This would help you always maintain the right threshold for user experience. 

Screen and remove all the distracting elements, make the content as precise as possible while catering to actual product or service display. 

Landscape photos and complex graphics don't show well when your screen is reduced by half. Take into account the mobile user with pictures that are comprehensible on handheld screens.

5. Be a User, Before Presenting to the User

Our industry standard for approaching design is devising wireframes first. During wireframing or prototyping, use adaptive breakpoints reference. It streamlines the process of moving to different screen sizes, starting with the least real estate. 

Hover is off the table

Interactive interfaces from 2018 mostly utilize hover effects. UX designers go bonkers over them. But that’s a desktop only thing as we do not have the finger-hover technology in town. You will have to forget hover' existence when going mobile. 

Having trouble configuring your site? Check out services by OpenSense Labs.

6. Opt for Accelerated Mobile Pages

Your users are likely to bounce off your website if it doesn’t load within 3 seconds. With mobile, the standard has been set high (or rather less). Since the internet has been taken for granted, people have become second sensitive these days. 

AMP does bring you speedy pages and is a great way to boost your SEO and stop losing out of potential customers. It’s important to note that Google has gone lengths to identify and promote AMP pages.

If your web pages follow AMP standards, it becomes eligible to be cached by Google and appear in the search results and carousels with the AMP logo, indicating that they offer a fast experience. 

A standard built on top of existing technologies to speed up the loading of web pages on mobile devices.

How to go about it?

Configure AMP in your website

7. Make engagement on Mobile Simple 

Whether it’s deciding between a “hamburger” style menu or a more visible-style on the front end or how to display forms on specific pages, don’t make engagement paths more abstract than they need to be. Engagement should be extremely crisp and effective in nature.


Set the Display Order

Now, after listing down all the elements, prioritizing is key. Sort out the cruciality of every element and how would they hierarchically sit in the interface. This should be in a way that the most important elements are displayed prominently. 

8. Test It Before You Sell It

Even after having the final product in your hands, recommendations and tweaks will keep flowing in. Change is evergreen. With changes being made, you need to be testing them as soon as they are deployed. 

Nothing beats discovering for yourself how usable a website is (or isn’t). Step away from your computer desktops and load up your product on a real phone or tablet. 

Test it in a real devices 

Using testing tools, you can conduct A/B tests. Some tests may be like, an orange CTA vs a Yellow CTA, Button size changes, block layout tweaks and etc. Tests can range from regular functionality checks to user experience tests.

Tap through pages. Is the site easy to navigate? Does it load in a timely fashion? Are the text and graphics easy to read?

It's as clear as the skies that the future of the internet is dependent on mobile experiences. Responsive web design is a must if you run your business online or attend to your customers for any purpose. 

The tips above will help you build what you are looking at while making the least possible amount of mistakes. 

If you need any further recommendations, we are here. Hook with us at hello@opensenselabs.com or tweet us at @OpenSenseLabs and our mobile development team will save you the trouble.

blog banner blog image Mobile first Mobile friendly  User experience Drupal Web Redesign Drupal websites Mobile approach Websites Mobile first approach Webpages Design Ideas Design Ideology Design Blog Type Articles Is it a good read ? On
Categories: Drupal

Drift

New Drupal Modules - 17 July 2018 - 6:34am

Drift (drift.com) is the easiest way to add free live chat to your site.

Usage:
After enabling the plug in, head on to the widget customization page to change settings and integrate its look and feel to match your site. When done, enable it by visiting the account configuration page and completing the instant signup process.

Categories: Drupal

Web Wash: Live Training: Managing Media Assets using Core Media in Drupal 8

Planet Drupal - 17 July 2018 - 6:30am

In the video above, you'll learn how to build powerful media management functionality using Drupal 8.5. I start the webinar with a review of what's new in Drupal 8 and then jump right into a live demo.

If you prefer text, then read our tutorial on "Managing Media Assets using Core Media in Drupal 8".

Categories: Drupal

Paragraphs Iframe

New Drupal Modules - 17 July 2018 - 5:31am

A simple paragraph type that accepts a URL and renders as an iframe

Categories: Drupal

Blair Wadman: How to add page templates for content types in Drupal 8

Planet Drupal - 17 July 2018 - 12:49am

This weeks tutorial will dive into how you can add page templates for a specific content type in Drupal 8. Sometimes you need to create a page template for a specific content type so that you can customise it. Drupal allows you to create content types for node templates out of the box by following the naming convention node--content-type.html.twig. But things aren’t so simple for page templates. Drupal does not automatically detect page templates for content types purely based on the naming convention. Fortunately it just takes a few lines of code and you can create a page template for any content type you choose....

Categories: Drupal

Dx Experts: Drupal core: Now with less than 100 Simpletests

Planet Drupal - 16 July 2018 - 11:34pm
Drupal core now has less than 100 Simpletests
Categories: Drupal

Pages

Subscribe to As If Productions aggregator - Drupal