Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shahar-cohen-levy/drupal_module
A custom Drupal module that adds favorite artists to the web app
https://github.com/shahar-cohen-levy/drupal_module
drupal drupal-10 drupal-module
Last synced: 3 months ago
JSON representation
A custom Drupal module that adds favorite artists to the web app
- Host: GitHub
- URL: https://github.com/shahar-cohen-levy/drupal_module
- Owner: shahar-cohen-levy
- Created: 2023-03-15T19:34:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T10:20:09.000Z (over 1 year ago)
- Last Synced: 2024-07-29T17:59:11.865Z (6 months ago)
- Topics: drupal, drupal-10, drupal-module
- Language: PHP
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotify artists
## Table of contents
- Introduction
- Requirements
- Installation
- Configuration## Introduction
Spotify Artists module connects to the Spotify API.
An administrator is able to save up to 20 Spotify artist ids.
A list of these artists’ names will be displayed in a block.
When logged in, each name will link to a page on the website
showing more information about that artist.
This artist page should only be visible to logged-in users.## Requirements
This module requires no modules outside of Drupal core.
## Installation
1. Extract 'spotify_artists' folder into Drupal's custom
module folder (modules/custom).
2. Enable the module. You may use this drush command:
`drush en spotify_artists`## Configuration
Configure API settings:
1. Get client ID & Secret from [Spotify](https://developer.spotify.com/documentation/web-api/tutorials/getting-started#create-an-app).
2. Go to `/admin/config/content/spotify_api`.
3. Enter client ID & Secret and submit.If 'Olivero' is the default theme, the module works out-of-the-box
using default artists in the header.For artists' configuration go to `/admin/config/content/spotify_artists`.
In order to add artists:
1. Enter an artist name. e.g., Dua Lipa.
2. Choose the artist from the results and click on 'Add selection to list'.In order to delete artists:
1. Select artist/s from the table.
2. click on 'Delete selected items'To place the Artists block follow [these](https://www.drupal.org/docs/user_guide/en/block-place.html) instructions.