tkoleary / location-package

A Drupal feature for creating rich location content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Location Package

A Drupal Content Package for creating rich location content.

The Location Content Package is a Drupal feature created using Features module (fetures is not a dependency). Location contains everything you need to immediately begin creating location content. Locations can be anything from brick-and-mortar stores to branch offices to music venues.

##SEO ready Content packages are designed to be immediately usable and fully marked up for SEO with schema.org RDF mappings. ##Fully internationalized Location depends on the address module developed for Drupal Commerce. Address uses the most robust and up-to-date libraries to provide the proper address formats and postal codes for hundreds of countries.

##Fully configured Location includes sane default human-readable field names and descriptions for every field as well as field formatters that provide the simplest most common experience for creating any kind of location.

##Fully customizable Once loaded into your database all of the default configuration can be changed if needed using standard Drupal configuration interfaces.

##Location includes ####Content types Location, Map ####Custom block types Featured Location ####Views Locations (page and block) ####Dependencies Drupal core, address, voting API, voting API widgets, (voting API and widgets required for review only)

If you want to see the default content you will also need Default Content module.

##Installation

  1. Clone this repo into the 'modules' directory of your Drupal 8 site.

  2. Address must be installed via Composer, in order to get the required libraries.

  3. Add the address Drupal.org repository

composer config repositories.drupal composer https://packages.drupal.org/8

This allows Composer to find Address and the other Drupal modules.

  1. Download Address:
composer require "drupal/address ~1.0"
  1. On the 'Extend' page check the boxes for 'Location', 'Featured location', and 'Map', and click 'install'. Drupal will detect the dependencies and ask if you want to install them. Click yes and the packages will be installed.

###For default content

  1. Download the default content module for Drupal 8 here and put it in your modules directory.

  2. Go to the 'extend' page and enable Location Default Content, when it prompts you to install Default Content module as a dependency, click yes.

##To use

To begin creating location content go to the content page, click 'add content' and choose 'Location', or 'map'. To create a featured location block, go to structure/block-layout/custom-blocks, click 'add custom block' and choose 'featured location'.

About

A Drupal feature for creating rich location content