Skip to content

Latest commit

 

History

History
98 lines (76 loc) · 2.29 KB

README.md

File metadata and controls

98 lines (76 loc) · 2.29 KB

Drupal boilerplate for Horizon Project's website

This is a collection of modules and configuration useful for the creation of a new website. THe modules is organized with

  • A first module lc_hcommon where are configured the predefined empty nodes of type page (governance, etc) and the menu configuration. The module also pre-install o uninstall some modules. Check the .install page for more details.
  • The lc_pages will install some common pages, like cookies and privacy.
  • The lc_section_* will install a complete section, with content-type, roles, views, menu entries and permissions

Content

The modules will create:

Content-types

  • Pilot (pilot pages of the project)
  • WP (Work package)
  • Partner (Partners of the project)

Views

  • Pilot list (block, page)
  • Partner list (block, page)
  • Work package list (block)

Roles

  • WP Manager
  • Partner Manager

Taxonomies vocabulary and terms

  • Country (EU27 countries)

Pages

  • Privacy
  • Cookies

Nodes (empty pages)

  • Description of the project
  • Governance
  • Contact
  • Open data

Menu entries

  • Main menu:

    • About
      • Description of the project (see nodes)
      • Partners
      • Governance
    • News
    • Pilots
    • Contact
  • Footer menu

    • Privacy
    • Cookies
    • Open data
    • Contact

How to install

Navigate in the web/modules/custom directory (or create if not exists), than create a "lc" folder and inside this execute the git clone.

mkdir -p web/modules/custom/lc git clone [email protected]:lisboncouncil/drupal-horizon-project.git .

Metod Composer

This method has to be improved with the copy of the directories in the modules/custom dir.

Add this to the composer.json

"repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "package",
            "package": {
                "name": "lisboncouncil/drupal-horizon-project",
                "version": "1.0",
                "type":"module",
                "source": {
                    "url": "https://github.com/lisboncouncil/drupal-horizon-project.git",
                    "type": "git",
                    "reference": "main"
                }
            }
        },
  ]

After that

  composer require lisboncouncil/drupal-horizon-project