Skip to content
Snippets Groups Projects
Select Git revision
  • 3.0.x
  • 2.0.x
  • 8.x-1.x
  • 7.x-1.x
  • 3.0.1
  • 3.0.0
  • 2.0.0
  • 8.x-1.0
  • 7.x-1.4
  • 7.x-1.3
  • 7.x-1.2
  • 7.x-1.1
  • 7.x-1.0
13 results

media_pixabay

  • Clone with SSH
  • Clone with HTTPS
  • Tara Potocnik's avatar
    Issue #3425363 by TaraP, slogar32: Accessibility/mobile usability improvments
    Tara Potocnik authored and Domen Šlogar committed
    c0751c3c
    History

    CONTENTS OF THIS FILE

    • Introduction
    • Requirements
    • Installation
    • Configuration
    • Maintainers

    INTRODUCTION

    The Media Pixabay module adds a new Pixabay widget for the Entity browser. When images are selected in the widget, they are also added to your media repository.

    You can search for images from Pixabay through the entity browser and save them as a media type with the image source plugin in your media repository and add them directly to entities. This module is ideal for bloggers, agencies, and portals who need royalty-free images through the Drupal Entity browser.

    REQUIREMENTS

    This module requires the following modules:

    INSTALLATION

    CONFIGURATION

    1. Register at Pixabay.com and obtain a Pixabay API key:
       https://pixabay.com/en/accounts/register/.
    
    2. Navigate to Administration->Configuration->Media->Pixabay Media
       (`admin/config/media/pixabay`) and add your Pixabay API key.
    
    3. Navigate to Administration->Configuration->Content Authoring->
       Entity Browser (`/admin/config/content/entity_browser`) and click
       'Add Entity browser'.
    
    4. Complete the required fields and click Save.
    
    5. Navigate to Administration->Configuration->Content Authoring->
       Entity Browser->Widget Settings
       (`/admin/config/content/entity_browser/{entity_browser_machine_name}
       /widgets`) and select 'Pixabay' from the 'Add widget plugin' dropdown.
       Configure the operations.
    
    6. Click Save to save the Entity Browser Pixabay plugin. When using the entity browser on
        entity fields, the field should be of the type entity reference to media. Image entity
        reference is not supported. Also only one Pixabay widget per entity browser is supported.

    Metadata mapping

    1. Navigate to Structure->Media types (`/admin/structure/media`) and click
       'Manage fields' for the media type with an image source plugin.
    
    2. Add a new or re-use an existing field of type 'link'.
    
    3. Navigate to the media type's 'Edit' page, under Field Mapping ->
        Pixabay URL select the field created in step 2.
    
    4. Click Save to save the media type. Any new images added through the
        Pixabay widget will now have the Pixabay URL saved in the field selected
        in step 3.

    MAINTAINERS

    Current maintainers:

    Supporting organizations: