zazama/onepage

A Silverstripe 4 module to easily create OnePagers by using SiteTree/Pages.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.0.0 2021-05-27 10:25 UTC

This package is auto-updated.

Last update: 2024-10-28 20:52:05 UTC


README

Packagist Version GitHub Scrutinizer code quality (GitHub/Bitbucket)

Introduction

OnePage allows you to create OnePagers by adding a OnePage page-type that allows you to add custom child pages that will be rendered on one page.

Requirements

  • silverstripe/framework ^4.0

This module was only tested on the newest 4.7.3.

Installation

composer require zazama/onepage

Usage

All you have to do is extend BaseChildPage and you're ready to go!

use Zazama\OnePage\BaseChildPage;

class ContentChildPage extends BaseChildPage {
  /*...*/
}

Then create a Layout template for your new Page (ContentChildPage in this example).