logicbrush/silverstripe-rolluppage

A module for the SilverStripe CMS which rolls up the contents of child pages for display on a single page.

Installs: 4 876

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

v0.2.0 2023-05-20 13:21 UTC

This package is auto-updated.

Last update: 2024-04-13 15:01:26 UTC


README

A fairly simple module for the SilverStripe CMS which rolls up the contents of child pages for display on a single page.

Why?

Have you ever found yourself trying to decide if you should have a single page of content with multiple headings, or a series of pages in a heirarchy. This module lets you set up your content as distinct pages in the page tree, and then flip between structures using a single radio button.

Installation

composer require "logicbrush/silverstripe-rolluppage"

Usage

This module defines a new page class of type Logicbrush\RollupPage\Model\RollupPage. When you create an instance of this page type, all of the children of that instance will have their content displayed inline -- "rolled up" -- with the output of the page.

Options

Rollup Pages

  • Content/Main Content/Rollup Display:

    When set to "Show children inline", the content of the child pages will be embedded into the Rollup Page's content one after another.

    If set to "Show children in tabs", a set of tabs will be displayed that allows the visitor to switch back and forth between the content of the child pages.

    If set to "Show children as links", a list of links to the child pages will be displayed.

Children of Rollup Pages

  • Settings/Behavior/Visibility/Never Rollup:

    If checked, this will prevent the page from ever being rolled up into a parent RollupPage.