374

Product support

Visit this product's website for support.

Categories

This project is no longer being maintained.

The Subpages plugin adds a component/snippet to allow you to embed subpages of one static page into other pages. For example, if you have a series of product pages and a home page, you can embed the contents of the product pages on the home page.

Requirements

OctoberCms Subpages Plugin

Introduction

The Subpages plugin adds a component/snippet to allow you to embed subpages of one static page into other pages. For example, if you have a series of product pages and a home page, you can embed the contents of the product pages on the home page.

Pre-requisites:

Installation

The plugin is available on the marketplace or via php artisan plugin:install Jwilson8767.Subpages. If you would like to install the dev version you can do so by cloning the github repository and running php artisan plugin:refresh Jwilson8767.Subpages

Usage

In Static Pages

Open the page you would like to embed pages into, hover over the "Snippets" menu on the left, then click "Subpages". The Snippet will be inserted into your page. By default it will use the current page's children, if you click it you can select an alternate page to pull children from. Thats all!

In Cms Pages

Use this example page:

url = "/subpage"
title = "Subpage Example"
layout = "default"

[subpages]
page='/events'
==
//php code block
==
<div class="container">
    {% component 'subpages' %}
</div>
  • Found the plugin useful on 13 Jun, 2018

    I get an error when expanding the component: Call to a member function getContent() on null" on line 329 of /var/www/project/www/modules/cms/controllers/Index.php

    on this line: $content = $partial->getContent();

    ?

  • Found the plugin not useful on 28 Nov, 2016

    Unable to install the plugin, there is an open issue on github

    unable to install subpages / not working
    #1 opened on Sep 29 by raskrial 

    Any idea when this will be fixed?

  • author

    Replied on 28 Nov, 2016

    I actually missed the notification about the issue opened in github, I will investigate this issue in the next few days and expect to have a fix sometime next week. Thank you for taking the time to comment as otherwise I may never have noticed the problem.

1.0.2

Fixed issue with snippets on multiple pages

Mar 04, 2016

1.0.1

First version of Subpages

Jan 14, 2016