Drupal

Firebase Notification

New Drupal Modules - 11 October 2018 - 11:38am

This module integrates with Google's Firebase Cloud Messaging to send notifications to Android devices after creating or editing a node.

To configure is simple, just create a Firebase account and go to the module settings to set the server key, the types of content you want to send notifications and other information about the notification.

Categories: Drupal

Entity Translation Copy

New Drupal Modules - 11 October 2018 - 7:29am

Problem:
You are given the task of updating an existing site (with content in it) to be multilingual. You do the steps on your local environment to make entities/nodes translatable (Following this guide) and then decide to export the configuration with features.

Categories: Drupal

Info Messages

New Drupal Modules - 11 October 2018 - 6:30am

Inglish
The module Info Message has a intention of alow the user and developers Drupal the render informative messages with blue background, for this enough call the function drupal_set_message and pass in second paramenter (type) the string "info".

Example:
drupal_set_message('Avoid deleting the modules directories manually before performing the uninstallation', 'info', FALSE);

Portugues

Categories: Drupal

content alert

New Drupal Modules - 11 October 2018 - 5:50am
Categories: Drupal

user notification

New Drupal Modules - 11 October 2018 - 5:48am
Categories: Drupal

Acquia Developer Center Blog: Decoupled Drupal Authentication with OAuth 2.0

Planet Drupal - 11 October 2018 - 5:48am

Perhaps the most critical component of any decoupled Drupal architecture is a robust authentication mechanism that protects data transmitted between a Drupal site and API consumers like JavaScript applications and native mobile applications. While Drupal core makes available HTTP Basic Authentication and cookie-based authentication, both easy to use, neither of these approaches is sufficiently secure when it comes to best practices.

Tags: acquia drupal planet
Categories: Drupal

Permissions by Term Redirect

New Drupal Modules - 11 October 2018 - 5:18am

This module builds upon the functionality provided by Permissions by Term in the following ways:

Categories: Drupal

Reactivesearch

New Drupal Modules - 11 October 2018 - 5:08am

Create blazing fast, decoupled react searches with Reactivesearch react library and Elasticsearch search server.

Project is under active development, no releases yet.

Categories: Drupal

Ashday's Digital Ecosystem and Development Tips: How a Content Management System Can Help Streamline Your Business

Planet Drupal - 10 October 2018 - 1:00pm

 The reality is that running a business is such a diverse and complex endeavor that managing complex and rapidly evolving software solutions needed to execute the mission can be an overwhelming component. It already takes enough energy and expertise to be proficient in managing people, knowing your vertical, regulating cash flow, envisioning new products, evaluating old products, and on and on and on. The problem, however, is that if you don’t leverage complex and rapidly evolving software solutions to handle processes, you end up drowning in inefficiency and inconsistency. So therein lies a significant and difficult problem because you likely didn’t get into business to become an informal senior software architect. And that’s where leveraging something like a robust CMS comes into play. 

Let’s look at some of the ways leveraging a modern CMS, like Drupal, for example, can significantly streamline your business and free you to, well, run your business.

Categories: Drupal

Entity split

New Drupal Modules - 10 October 2018 - 10:48am

This module allows to create external parts for content entities such as nodes, taxonomy terms, etc.

If some data related to a node must be physically stored in a separate place, not in this node itself, "entity split" entity can be created for this. This separate entity is automatically linked with the initial node and can contain its own fields which thus connected to this node.

Categories: Drupal

myDropWizard.com: Drupal 6 security update for Lightbox2 module

Planet Drupal - 10 October 2018 - 10:40am

As you may know, Drupal 6 has reached End-of-Life (EOL) which means the Drupal Security Team is no longer doing Security Advisories or working on security patches for Drupal 6 core or contrib modules - but the Drupal 6 LTS vendors are and we're one of them!

Today, there is a Critical security release for the Lightbox2  module to fix a Cross Site Scripting (XSS) vulnerability.

The Lightbox2 module enables you to overlay images on the current page.

The module did not sanitize some inputs when used in combination with a custom View leading to potential XSS.

See the security advisory for Drupal 7 for more information.

Here you can download the Drupal 6 patch.

If you have a Drupal 6 site using the Lightbox2 module, we recommend you update immediately! We have already deployed the patch for all of our Drupal 6 Long-Term Support clients. :-)

If you'd like all your Drupal 6 modules to receive security updates and have the fixes deployed the same day they're released, please check out our D6LTS plans.

Note: if you use the myDropWizard module (totally free!), you'll be alerted to these and any future security updates, and will be able to use drush to install them (even though they won't necessarily have a release on Drupal.org).

Categories: Drupal

OpenSense Labs: Most scalable CMS: Drupal 8

Planet Drupal - 10 October 2018 - 9:48am
Most scalable CMS: Drupal 8 Shankar Wed, 10/10/2018 - 22:18

Everyone has their own preference when it comes to different genres of music ranging from alternative rock and post-rock to trap rap and drone metal. Website traffic touches sky-high when a horde of music lovers remain glued to their screens to witness their favourite artists being awarded in this annual event of Grammy awards. Being a scalable and high performing space, the website of Grammy has coped with huge spikes in traffic with ease.


Website scalability is such a crucial aspect which has a huge say in the performance of digital firms. Drupal 8 and its capabilities lend better web performance. Being highly scalable, Drupal 8 helps in building a web application that is unfazed by the colossal spike in the internet traffic and scales tremendously. Grammy, powered by Drupal, has extracted the scalability features of Drupal to a great extent. Let's find out how.

The Significance of Website Scalability 58% of application/site owners overestimate their capacity levels: State of Web Readiness Report by Load Impact


A report from Load Impact has some interesting statistics on web performance.

  • 68% of respondents have encountered performance or stability issues with their website where the main reason was pointed towards the lack of resources.
  •  
  • 39% of e-retailers claimed that they incurred a financial loss due to performance or stability problems. In comparison to this, just 24% of the non-e-retailers claimed that they incurred money loss.
  •  
  • 98% of e-retailers believed that sub-two-second response time was essential. But the load time for e-commerce sites that were analysed in this report surpassed the desirable response threshold by a huge margin. The average was 7.9 seconds which is more than that for non-e-commerce sites.

Typically, 90% of your website’s response time is from frontend resources but this laters as your load and traffic enhances.


Questions that you can raise while determining ways of scaling:

  • Is your website or application performing acceptably with a minimum number of users on the system?
  • Is the website or application responding running faster with additional concurrent users? And if so, how many?
  • Are there hardware bottlenecks in the present system?
  • Is the website or application able to handle the increasing number of users/data?
  • What is the maximum amount of load the system is able to handle?
Is Drupal Scalable?

Drupal is a highly scalable CMS. If you want your site to grow and be amongst the busiest of online spaces, then Drupal can scale with your needs. Even if you are already popular and offer stupendous digital experience to the customers, Drupal is scalable to cope with the gargantuan amount of traffic to your site content.

Large enterprises love Drupal with the digital presence of big names like Grammy, Weather.com, Pfizer, Time Inc., Tesla, Puma, Princess Cruises, and many more powered by Drupal. Whether it is the extreme traffic spikes on certain occasions or the constant web traffic, Drupal handles all of that with utmost ease.

Drupal accommodates content growth and supports the most content-rich sites and experiences. It scales to govern more traffic, content, and users. So whether if you have one or over a thousand content contributors, Drupal can efficaciously cope with a monumental amount of visitors, content, and Drupal users.

Optimising Drupal Performance and Scalability

A superfast website significantly contributes towards the improvement of user experience, usability and engagement. Drupal 8 is one of the most efficient CMS for enabling blistering page speed.

A superfast website significantly contributes towards the improvement of user experience, usability and engagement. Module management

Outdated modules can deter your efforts in speeding up your website. Updating every module enabled on your Drupal site can be beneficial.
 
It is also important to keep a record on used or no longer used modules. The number of Drupal modules installed on the site is directly proportional to the time taken for code execution thereby affecting page load time. Hence, uninstalling unwanted modules can improve execution time.
 
Furthermore, disabling the modules also add to the execution time of the code. So, a complete removal by uninstalling the unused modules would make the site faster.

Cache optimisation

Caching is an important feature that you can configure for enhancing your website speed. For advanced caching, Drupal comes with a great set of modules:

  • Internal Page Cache module assists in caching the web pages for anonymous users to enhance the speed for subsequent users.
  • Dynamic Page Cache module caches web pages for the anonymous and authenticated users.
  • BigPipe module lets users to swiftly see the unaltered, cacheable page elements while the personalised content is displayed next.
  • Redis module helps in integrating with the Redis key-value store thereby offering a tremendous cache system for static pages.
  • Varnish module allows you to integrate Drupal sites with an advanced and fast reverse-proxy system - Varnish cache- to serve static files and anonymous page views faster and at high volumes.
  • Memcache API and Integration module integrated Drupal sites with Memcached which helps in storing your data in active memory for a limited time period that makes the site faster to access.
Incorporation of Content Delivery Network (CDN)

CDN, Drupal module, assists in the integration of Content Delivery Network for the websites. It alters the file URLs thereby allowing the files like CSS, JavaScripts, images, videos, and fonts to be downloaded from the CDN instead of the web server. This helps in mitigating page load time and rapidly delivers web page components.

Usage of lazy loading

In traditional websites, all the images and content are preloaded into the web browser when someone accesses the site. Lazy loading loads these elements as soon as a user scrolls to view a content. Blazy, Drupal module, offers the functionalities of lazy loading and multi-serves the images to save bandwidth and server requests.

Image optimisation

Drupal 8 is loaded with image optimisation feature for setting the compression ratio of the images and fine-tune the page performance. Also, the size of the images for different screen sizes can be optimised in Drupal 8 which increases the page load speed.

Bandwidth optimisation

Optimising bandwidth refers to the aggregation of all CSS and JavaScript files to make them load together which ensures that all the page elements can be seen by the users almost immediately.

404 error management

When something on the site breaks to cause a 404 error, it can result in sluggishness. For instance, a failed image can hamper the performance of the site. Fast 404, Drupal module, utilises the resources better and whitelists files and checks pathways of problem.

Management of use of CSS and JavaScript

Avoiding overuse of CSS files and JS and adopting a minimalistic approach by keeping the code to a minimum can improve performance. Advanced CSS/JS Aggregation, Drupal module, can help in keeping a tab of your front-end performance by aggregating CSS and JavaScript files to improve speed.

Web hosting

It is of utmost significance that, while implementing every possible way of utilising the Drupal’s powerful capabilities, you select the best hosting provider that will decide your site’s ultimate speed, stability and security.

Scaling the server

In case, your server hardware is nearing its limits and you have optimised the site as much as possible, or you need a faster way of scaling than you can optimise, you can upgrade the server hardware in the following ways:

  • Scaling vertically: This is the simplest way of scaling the hardware. It refers to throwing more resources at the same server. In a cloud data centre, it may be as simple as upgrading the server size for more CPU cores, memory etc.
  • Scaling horizontally: This is a more intricate process than scaling vertically. It refers to adding more servers to separate the load. When done right, this can hugely minimise the load any single server receives.
  • Considering multiple servers: In case, you have multiple app servers for Drupal, you will require a method of deploying code to each server simultaneously. For instance, SaaS platforms like platform.sh and pantheon.io can handle the complete hosting setup for you but if you are doing it by yourself, you would need an rsync setup or git push to each of your servers etc. 
Up above the world so high: Drupal’s scalability for NASA Source: Drupal.org

A digital agency migrated the website of NASA to the AWS cloud and onto Drupal to create a fully responsive and user-centric experience. Several AWS based Drupal CMS solutions for NASA were implemented for NASA for serving a plethora of needs ranging from nasa.gov to the Science Mission Directorate’s science.nasa.gov in both English and Spanish to a multisite platform and governance model for numerous Drupal applications serving groups across different NASA centres.
 
Nasa.gov and all of its subdomain components were migrated and relaunched which involved replacement of a closed source system. It comprised of more than 250000 pages and almost 3 TB of content.

Drupal in action

Drupal compressed the complete development timeline and also saved a lot of money in the process. Building with Drupal on the Amazon cloud ensured that NASA’s content is stored safely and scales with the content growth. With its user-driven APIs, dynamic host provisioning, infinite compute scalability and storage, and well-architected security architecture, Drupal and AWS together was the right fit.

Drupal compressed the complete development timeline and also saved a lot of money in the process. Project highlights
  • Migration from proprietary, on-premise CMS system to an open source CMS in the Amazon cloud was performed without any service interruptions
  • Mobile-first approach was employed to the redesign of the site.
  • Headless Drupal in AWS cloud environment was built with security, performance and availability in mind.
Outcome  Source: Drupal.org

It is deployed in multiple AWS availability zones for redundancy handling approximately 500 content editors performing over 2000 content updates every day. On an average, it receives nearly one million page views a day and has handled peak loads of over 40,000,000 page views in a single day with a staggering and record-breaking 2,000,000+ concurrent users during NASA’s 2017 Total Solar Eclipse coverage.

Conclusion

Website scalability and performance is a significant aspect that ensures how well the digital business does during the busiest of times. Whether internet users throng at your website causing a sudden spike in traffic, or you are managing a popular service that witnesses a constant web traffic, Drupal scales with your needs.
 
We have been steadfast in our objective of offering an amazing digital experience through a suite of services.
 
Contact us at hello@opensenselabs.com to build a highly scalable Drupal site for your business.

blog banner blog image website scalability Scalability scalable website scalable CMS high-performance website performance and scalability Drupal scalability Drupal performance server scaling Performance Optimisation Website Performance Optimisation Blog Type Articles Is it a good read ? On
Categories: Drupal

Porting Commerce Price Table drupal 8

New Drupal Modules - 10 October 2018 - 8:56am
Categories: Drupal

Blair Wadman: Need to reuse HTML in multiple templates? Try using partial Twig templates

Planet Drupal - 10 October 2018 - 8:43am

You have a piece of HTML code that needs to be included in multiple Twig templates. The code will be consistent across all of them - if you need to change it, you need to change it everywhere it is used.

As an example, I recently had to include a piece of code from a social share service called RhythmOne. I want to include this code in some, but not all, of the node templates.

Categories: Drupal

Sooper Drupal Themes: Designing A Modern Drupal Drop-Down Menu with Glazed Theme

Planet Drupal - 10 October 2018 - 7:42am

The Main Menu on your website is the first thing that catches visitor’s attention. Besides, it’s one of the most important elements that will assist the user in an effortless and intuitive navigation. In this article we are going to talk about how to design a Drupal Drop-down Menu with Glazed Theme.

Before diving into customizing our Main Menu, learn How to Create Drop-down menus with Drupal 8 and Glazed Theme.

To start customizing our menu design we need to go to the Glazed Theme Settings page. Amongst a dozen of options that are directly responsible for every element of your website design and how the end-user sees it, we are going to find the Header & Main Menu - the place that will change how our menu looks like.

Header & Main Menu

When navigating to the Header & Main Menu, first thing that will come to our attention is the “Top Header Options”.
Clicking it will open an entire new world of possibilities. Here We can choose 1 of the 7 layouts that come pre-installed with Glazed Builder. A layout for every taste! Depending on what you want to choose for your website, you can pick between having your logo on the left and menu on the right, which is the default layout that you are already familiar with (spoiler: the one on this website), having everything beautifully aligned in the center, place the menu on the left, or several others.

Header style is probably one of the most important settings here and will determine the overall look and feel for your website (will it be more minimalistic or will it have a more “heavy” look to it?). We are able to choose between 3 general types of header styles: Normal, Overlay or Pull-down Navbar.

You can see examples of each header style and header layouts on the Glazed Theme Live Demo Page.

Each one of these options look great when implemented, but they are going to need some further refinements to look exactly how you imagined. This brings us to our next element: Height. Choosing the height value will determine how tall or short our main menu will be. Once we got our perfect Height settings we will move on to deciding whether or not we would like our Menu to have a fixed position. A fixed header stays at the top of the browser window when a user scrolls.

Behavior of the Drupal Drop-Down Menu

If we decide that we want our menu to stick to the top of the browser when people scroll, then another option will pop-out asking us if we would also like a sticky header – which basically means that the menu will appear only after the user scrolls past a certain point on your page, only then will it stick to the top of his or her window. This will be determined by the scroll offset, height & background opacity values that you decide on.
Congrats! You’re past all the technical aspects of your gorgeous Menu bar. (Well not really but for now we are moving on to the fun part - choosing the colors)

Customize Navigation Colors

Here is the place where it all comes together. You can choose colors from your website’s color scheme (Custom one you made or Glazed Default) or add individual values to each settings’ custom color. In this menu we can choose the colors for every aspect of the navigation menu: text color, drop-down background, menu hover text, etc.

After we are happy with the result we can move on to adding the final touches to our menu design.

Side Header & Mobile Menu Options

In this area you can choose the layout look on mobile devices and your side header (if you choose to opt for one in the beginning). You can determine elements such as content alignment (left/center/right) and menu bar width.

The Main Menu Link is for determining the font style and hover style of our Main Menu (both website & mobile versions).
Last but not least, by going to Mobile Header menu we will determine the mobile breakpoint and the height of our menu in order to make it even more mobile-friendly.

We have designed a brand new Main Menu for our website which will be enjoyed by the visitors and help them easily navigate to the information they are looking for!

We also created some Main Menu designs along with you so you don’t get bored doing it all by yourself. We’ll leave each settings value below. If you like any of them feel free to recreate or use them as an inspiration for your future eye-catching Main Menu.

DESIGN 1

    Top Header Options

    • Layout: Logo Left, Menu Left
    • Header Style: Normal
    • Height: 70
    • Fixed position: OFF
     

    Customize Navigation Colors

    • Menu Background: White
    • Menu Text: Custom color - #21252a
    • Menu Hover Background: Custom color - #21252a
    • Menu Hover Text: White
    • Drop-down Background: Custom color - #21252a
    • Drop-down Text: White
    • Drop-down Hover Background: #111111  
    • Drop-down Hover Text: White


    DESIGN 2

      Top Header Options

      • Layout: Normal (Logo left - Menu right)
      • Header Style: Overlay
      • Header Opacity: 0
      • Height: 50
      • Fixed position: OFF
      • Sticky Header: OFF

      Customize Navigation Colors

      • Menu Background: None
      • Menu Text: White
      • Menu Hover Background: #ffffff00 (sets it to transparent)
      • Menu Hover Text: Custom color - #b2b2b2
      • Drop-down Background: Custom color - #fcfcfc
      • Drop-down Text: #282323
      • Drop-down Hover Background: Custom color - #d8d8d8
      • Drop-down Hover Text: Custom color - #21252a


      DESIGN 3

        Top Header Options

        • Layout: Centered (inline)
        • Header style: Overlay
        • Header opacity: 0
        • Height: 70
        • Fixed position: On
        • Sticky header: On


        Sticky Header Options

        • Hide before scrolling: Always show
        • Scroll offset: 120
        • Height: 70
        • Background opacity: 0


        Customize Navigation Colors

        • Menu background: none
        • Menu text: custom color - #21252a
        • Menu hover background: custom color - #ffffff00
        • Menu hover text: custom color - #65b7ff
        • Drop-down Background: custom color - #fcfcfc
        • Drop-down text: custom color -  #282323
        • Drop-down Hover Background: custom color - #ffffff00
        • Drop-down Hover text: custom color - #65b7ff

        Did you enjoy this article? Subscribe to our Newsletter to stay up-to-date with our latest blog posts! 

        Categories: Drupal

        Super Select

        New Drupal Modules - 10 October 2018 - 7:15am

        -- SUMMARY --

        Super Select uses the tokenizer jQuery plugin to make your <select> elements more user-friendly.

        -- INSTALLATION --

        Categories: Drupal

        Agiledrop.com Blog: Jonathan Hedstrom: Drupal is like Lego for adult professionals

        Planet Drupal - 10 October 2018 - 6:43am

        This week we talked with Jonathan Hedstrom. Read about what he thinks has been the biggest evolution for Drupal, what contribution is he the proudest of and what he thinks is the most important about Drupal today.

        READ MORE
        Categories: Drupal

        Sitemeta

        New Drupal Modules - 10 October 2018 - 2:24am

        The Site Meta module provides a flexible and easy method to set meta tags, such as page title, description and keywords for nodes, views and other different pages.

        This is a clone of Simple Meta module(D7).

        Categories: Drupal

        Matt Glaman: OK PhpStorm, what methods does my entity have?

        Planet Drupal - 10 October 2018 - 1:00am
        OK PhpStorm, what methods does my entity have? Wednesday 10, October 2018 mglaman

        Working in object-oriented programming is great. You can define interfaces which specify a contract that implementers need to fulfill. You can then extend these to define your end requirement and provide the implementation. This also means you can guarantee an object that implements that interface will have a guaranteed set of known methods. In Drupal, all entities implement EntityInterface, this is how we know that an entity can return its identifier, label, language, and other common methods.

        Categories: Drupal

        Die in Twig

        New Drupal Modules - 9 October 2018 - 10:21pm

        This module provides the functionality of stoping the executaion of script in
        twig file. Like we do in PHP through die function.

        Just use {{ die_in_twig() }} in any '.html.twig' template and it will end the
        script's execution with a message 'End of script'.

        Categories: Drupal

        Pages

        Subscribe to As If Productions aggregator - Drupal