/d7page

test

Primary LanguagePHP

List lodgings in two blocks

Requirements

PHP 7.

Installation

Normal D7 module installation.

Creates DB table d7page_lodging,
and reads lodgings into that from in-module JSON file.

Configuration

Add two blocks to the overall page template:

  • in admin backend, go to Structure > Blocks (/admin/structure/block)
  • add Lodging list to the Content region
  • add Lodging entry to the Content region

Use

Go to an ordinary page, like /node.

The Lodging list will list all the lodgings.

The Lodging entry remains hidden, unless a lodging is selected:

  • click on a Headline in the Lodging list