Skip to content

An OctoberCMS plugin to help you embed static pages in one another, layouts, or cms pages.

License

Notifications You must be signed in to change notification settings

jwilson8767/oc-subpages-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OctoberCms Subpages Plugin

This project is no longer being maintained.

##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:

  • Rainlab Pages plugin

##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>

About

An OctoberCMS plugin to help you embed static pages in one another, layouts, or cms pages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages